|
1 |
| package org.acegisecurity.providers.jaas; |
|
2 |
| |
|
3 |
| import javax.security.auth.login.LoginContext; |
|
4 |
| |
|
5 |
| import org.acegisecurity.GrantedAuthority; |
|
6 |
| import org.acegisecurity.providers.UsernamePasswordAuthenticationToken; |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| public class JaasAuthenticationToken extends UsernamePasswordAuthenticationToken { |
|
13 |
| |
|
14 |
| private transient LoginContext loginContext = null; |
|
15 |
| |
|
16 |
1
| public JaasAuthenticationToken(Object principal, Object credentials, LoginContext loginContext) {
|
|
17 |
1
| super(principal, credentials);
|
|
18 |
1
| this.loginContext = loginContext;
|
|
19 |
| } |
|
20 |
| |
|
21 |
4
| public JaasAuthenticationToken(Object principal, Object credentials, GrantedAuthority[] authorities, LoginContext loginContext) {
|
|
22 |
4
| super(principal, credentials, authorities);
|
|
23 |
4
| this.loginContext = loginContext;
|
|
24 |
| } |
|
25 |
| |
|
26 |
1
| public LoginContext getLoginContext() {
|
|
27 |
1
| return loginContext;
|
|
28 |
| } |
|
29 |
| } |