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

java.lang.Objectnet.sf.acegisecurity.providers.x509.X509AuthenticationProvider
- All Implemented Interfaces:
- net.sf.acegisecurity.providers.AuthenticationProvider, org.springframework.beans.factory.InitializingBean
- public class X509AuthenticationProvider
- extends java.lang.Object
- implements net.sf.acegisecurity.providers.AuthenticationProvider, org.springframework.beans.factory.InitializingBean
- extends java.lang.Object
Processes an X.509 authentication request.
The request will typically originate from
net.sf.acegisecurity.ui.x509.X509ProcessingFilter).
- Version:
- $Id: X509AuthenticationProvider.java,v 1.5 2005/03/18 01:00:33 luke_t Exp $
| Field Summary | |
private static org.apache.commons.logging.Log |
logger
|
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). |
net.sf.acegisecurity.Authentication |
authenticate(net.sf.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 |
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
x509AuthoritiesPopulator
private X509AuthoritiesPopulator x509AuthoritiesPopulator
userCache
private X509UserCache userCache
| Constructor Detail |
X509AuthenticationProvider
public X509AuthenticationProvider()
| Method Detail |
setX509AuthoritiesPopulator
public void setX509AuthoritiesPopulator(X509AuthoritiesPopulator x509AuthoritiesPopulator)
setX509UserCache
public void setX509UserCache(X509UserCache cache)
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 net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication authentication) throws net.sf.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 interfacenet.sf.acegisecurity.providers.AuthenticationProvider
supports
public boolean supports(java.lang.Class authentication)
- Description copied from interface:
net.sf.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 interfacenet.sf.acegisecurity.providers.AuthenticationProvider
|
|||||||||
| Home >> All >> net >> sf >> acegisecurity >> providers >> [ x509 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
net.sf.acegisecurity.providers.x509.X509AuthenticationProvider