|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.authentication.AbstractAuthenticationToken org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken
public class PreAuthenticatedAuthenticationToken
Authentication
implementation for pre-authenticated
authentication.
Constructor Summary | |
---|---|
PreAuthenticatedAuthenticationToken(java.lang.Object aPrincipal,
java.lang.Object aCredentials)
Constructor used for an authentication request. |
|
PreAuthenticatedAuthenticationToken(java.lang.Object aPrincipal,
java.lang.Object aCredentials,
java.util.Collection<? extends GrantedAuthority> anAuthorities)
Constructor used for an authentication response. |
Method Summary | |
---|---|
java.lang.Object |
getCredentials()
Get the credentials |
java.lang.Object |
getPrincipal()
Get the principal |
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken |
---|
equals, eraseCredentials, 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(java.lang.Object aPrincipal, java.lang.Object aCredentials)
Authentication.isAuthenticated()
will return
false
.
aPrincipal
- The pre-authenticated principalaCredentials
- The pre-authenticated credentialspublic PreAuthenticatedAuthenticationToken(java.lang.Object aPrincipal, java.lang.Object aCredentials, java.util.Collection<? extends GrantedAuthority> anAuthorities)
Authentication.isAuthenticated()
will return
true
.
aPrincipal
- The authenticated principalanAuthorities
- The granted authoritiesMethod Detail |
---|
public java.lang.Object getCredentials()
Principal
public java.lang.Object getPrincipal()
Principal
being authenticated or the authenticated principal after authentication.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |