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