|
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.x509.X509AuthenticationToken
public class X509AuthenticationToken
Authentication
implementation for X.509 client-certificate authentication.
Constructor Summary | |
---|---|
X509AuthenticationToken(Object principal,
X509Certificate credentials,
GrantedAuthority[] authorities)
Deprecated. Used for an authentication response object. |
|
X509AuthenticationToken(X509Certificate credentials)
Deprecated. Used for an authentication request. |
Method Summary | |
---|---|
Object |
getCredentials()
Deprecated. The credentials that prove the principal is correct. |
Object |
getPrincipal()
Deprecated. The identity of the principal being authenticated. |
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 X509AuthenticationToken(X509Certificate credentials)
Authentication.isAuthenticated()
will return
false
.
credentials
- the certificatepublic X509AuthenticationToken(Object principal, X509Certificate credentials, GrantedAuthority[] authorities)
Authentication.isAuthenticated()
will return true
.
principal
- the principal, which is generally a
UserDetails
credentials
- the certificateauthorities
- the authoritiesMethod Detail |
---|
public Object getCredentials()
Authentication
AuthenticationManager
. Callers are expected to populate the credentials.
Principal
public Object getPrincipal()
Authentication
Principal
being authenticated
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |