|
|||||||||
| Home >> All >> org >> acegisecurity >> providers >> [ x509 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.acegisecurity.providers.x509
Class X509AuthenticationProvider

java.lang.Objectorg.acegisecurity.providers.x509.X509AuthenticationProvider
- All Implemented Interfaces:
- org.acegisecurity.providers.AuthenticationProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
- public class X509AuthenticationProvider
- extends java.lang.Object
- implements org.acegisecurity.providers.AuthenticationProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
- extends java.lang.Object
Processes an X.509 authentication request.
The request will typically originate from org.acegisecurity.ui.x509.X509ProcessingFilter).
| Field Summary | |
private static org.apache.commons.logging.Log |
logger
|
protected org.springframework.context.support.MessageSourceAccessor |
messages
|
private X509UserCache |
userCache
|
private X509AuthoritiesPopulator |
x509AuthoritiesPopulator
|
| Constructor Summary | |
X509AuthenticationProvider()
|
|
| Method Summary | |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
org.acegisecurity.Authentication |
authenticate(org.acegisecurity.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(org.springframework.context.MessageSource messageSource)
Set the MessageSource that this object runs in. |
void |
setX509AuthoritiesPopulator(X509AuthoritiesPopulator x509AuthoritiesPopulator)
|
void |
setX509UserCache(X509UserCache cache)
|
boolean |
supports(java.lang.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 |
logger
private static final org.apache.commons.logging.Log logger
messages
protected org.springframework.context.support.MessageSourceAccessor messages
x509AuthoritiesPopulator
private X509AuthoritiesPopulator x509AuthoritiesPopulator
userCache
private X509UserCache userCache
| Constructor Detail |
X509AuthenticationProvider
public X509AuthenticationProvider()
| Method Detail |
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Description copied from interface:
org.springframework.beans.factory.InitializingBean - Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
authenticate
public org.acegisecurity.Authentication authenticate(org.acegisecurity.Authentication authentication) throws org.acegisecurity.AuthenticationException
- 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.
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.
- Specified by:
authenticatein interfaceorg.acegisecurity.providers.AuthenticationProvider
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Description copied from interface:
org.springframework.context.MessageSourceAware - Set the MessageSource that this object runs in.
Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked before ApplicationContextAware's setApplicationContext.
- Specified by:
setMessageSourcein interfaceorg.springframework.context.MessageSourceAware
setX509AuthoritiesPopulator
public void setX509AuthoritiesPopulator(X509AuthoritiesPopulator x509AuthoritiesPopulator)
setX509UserCache
public void setX509UserCache(X509UserCache cache)
supports
public boolean supports(java.lang.Class authentication)
- Description copied from interface:
org.acegisecurity.providers.AuthenticationProvider - Returns
trueif thisAuthenticationProvidersupports the indicatedAuthenticationobject.Returning
truedoes not guarantee anAuthenticationProviderwill be able to authenticate the presented instance of theAuthenticationclass. It simply indicates it can support closer evaluation of it. AnAuthenticationProvidercan still returnnullfrom the AuthenticationProvider.authenticate(Authentication)>AuthenticationProvider.authenticate(Authentication)55 method to indicate anotherAuthenticationProvidershould be tried.Selection of an
AuthenticationProvidercapable of performing authentication is conducted at runtime theProviderManager.- Specified by:
supportsin interfaceorg.acegisecurity.providers.AuthenticationProvider
|
|||||||||
| Home >> All >> org >> acegisecurity >> providers >> [ x509 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.acegisecurity.providers.x509.X509AuthenticationProvider