|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.providers.AbstractAuthenticationToken org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationToken
public class PreAuthenticatedAuthenticationToken
Authentication
implementation for pre-authenticated
authentication.
Constructor Summary | |
---|---|
PreAuthenticatedAuthenticationToken(Object aPrincipal,
Object aCredentials)
Constructor used for an authentication request. |
|
PreAuthenticatedAuthenticationToken(Object aPrincipal,
Object aCredentials,
GrantedAuthority[] anAuthorities)
Constructor used for an authentication response. |
Method Summary | |
---|---|
Object |
getCredentials()
Get the credentials |
Object |
getPrincipal()
Get the principal |
Methods inherited from class org.springframework.security.providers.AbstractAuthenticationToken |
---|
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials)
Authentication.isAuthenticated()
will return
false
.
aPrincipal
- The pre-authenticated principalaCredentials
- The pre-authenticated credentialspublic PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials, GrantedAuthority[] anAuthorities)
Authentication.isAuthenticated()
will return
true
.
aPrincipal
- The authenticated principalanAuthorities
- The granted authoritiesMethod Detail |
---|
public Object getCredentials()
Principal
public Object getPrincipal()
Principal
being authenticated
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |