|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.providers.x509.X509AuthenticationProvider
public class X509AuthenticationProvider
Processes an X.509 authentication request.
The request will typically originate from X509ProcessingFilter).
| Field Summary | |
|---|---|
protected MessageSourceAccessor |
messages
|
| Constructor Summary | |
|---|---|
X509AuthenticationProvider()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
Authentication |
authenticate(Authentication authentication)
If the supplied authentication token contains a certificate then this will be passed to the configured X509AuthoritiesPopulator to
obtain the user details and authorities for the user identified by the
certificate. |
void |
setMessageSource(MessageSource messageSource)
|
void |
setX509AuthoritiesPopulator(X509AuthoritiesPopulator x509AuthoritiesPopulator)
|
void |
setX509UserCache(X509UserCache cache)
|
boolean |
supports(Class authentication)
Returns true if this AuthenticationProvider
supports the indicated Authentication object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MessageSourceAccessor messages
| Constructor Detail |
|---|
public X509AuthenticationProvider()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public Authentication authenticate(Authentication authentication)
throws AuthenticationException
X509AuthoritiesPopulator to
obtain the user details and authorities for the user identified by the
certificate.
If no certificate is present (for example, if the filter is applied to an HttpRequest for which client authentication hasn't been configured in the container) then a BadCredentialsException will be raised.
authenticate in interface AuthenticationProviderauthentication - the authentication request.
AuthenticationException - if the X509AuthoritiesPopulator
rejects the certficate.
BadCredentialsException - if no certificate was presented in the
authentication request.public void setMessageSource(MessageSource messageSource)
setMessageSource in interface MessageSourceAwarepublic void setX509AuthoritiesPopulator(X509AuthoritiesPopulator x509AuthoritiesPopulator)
public void setX509UserCache(X509UserCache cache)
public boolean supports(Class authentication)
AuthenticationProvidertrue if this AuthenticationProvider
supports the indicated Authentication object.
Returning true does not guarantee an
AuthenticationProvider will be able to authenticate the
presented instance of the Authentication class. It simply
indicates it can support closer evaluation of it. An
AuthenticationProvider can still return null
from the AuthenticationProvider.authenticate(Authentication) method to indicate
another AuthenticationProvider should be tried.
Selection of an AuthenticationProvider capable of
performing authentication is conducted at runtime the
ProviderManager.
supports in interface AuthenticationProvidertrue if the implementation can more closely
evaluate the Authentication class presented
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||