public class X509AuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication implementation for X.509 client-certificate authentication.
Migrated from Spring Security 2 since it has been removed in Spring Security 3.
| Constructor and Description |
|---|
X509AuthenticationToken(Object principal,
X509Certificate credentials,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Used for an authentication response object.
|
X509AuthenticationToken(X509Certificate credentials)
Used for an authentication request.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials() |
Object |
getPrincipal() |
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic X509AuthenticationToken(X509Certificate credentials)
Authentication.isAuthenticated() will return
false.credentials - the certificatepublic X509AuthenticationToken(Object principal, X509Certificate credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Authentication.isAuthenticated()
will return true.principal - the principal, which is generally a
UserDetailscredentials - the certificateauthorities - the authorities