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

java.lang.Objectorg.acegisecurity.providers.x509.populator.DaoX509AuthoritiesPopulator
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.acegisecurity.providers.x509.X509AuthoritiesPopulator
- public class DaoX509AuthoritiesPopulator
- extends java.lang.Object
- implements org.acegisecurity.providers.x509.X509AuthoritiesPopulator, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
- extends java.lang.Object
Populates the X509 authorities via an org.acegisecurity.userdetails.UserDetailsService.
| Field Summary | |
private static org.apache.commons.logging.Log |
logger
|
protected org.springframework.context.support.MessageSourceAccessor |
messages
|
private org.apache.oro.text.regex.Pattern |
subjectDNPattern
|
private java.lang.String |
subjectDNRegex
|
private org.acegisecurity.userdetails.UserDetailsService |
userDetailsService
|
| Constructor Summary | |
DaoX509AuthoritiesPopulator()
|
|
| Method Summary | |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
org.acegisecurity.userdetails.UserDetails |
getUserDetails(java.security.cert.X509Certificate clientCert)
Obtains the granted authorities for the specified user. |
void |
setMessageSource(org.springframework.context.MessageSource messageSource)
Set the MessageSource that this object runs in. |
void |
setSubjectDNRegex(java.lang.String subjectDNRegex)
Sets the regular expression which will by used to extract the user name from the certificate's Subject DN. |
void |
setUserDetailsService(org.acegisecurity.userdetails.UserDetailsService authenticationDao)
|
| 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
userDetailsService
private org.acegisecurity.userdetails.UserDetailsService userDetailsService
messages
protected org.springframework.context.support.MessageSourceAccessor messages
subjectDNPattern
private org.apache.oro.text.regex.Pattern subjectDNPattern
subjectDNRegex
private java.lang.String subjectDNRegex
| Constructor Detail |
DaoX509AuthoritiesPopulator
public DaoX509AuthoritiesPopulator()
| 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
getUserDetails
public org.acegisecurity.userdetails.UserDetails getUserDetails(java.security.cert.X509Certificate clientCert) throws org.acegisecurity.AuthenticationException
- Description copied from interface:
org.acegisecurity.providers.x509.X509AuthoritiesPopulator - Obtains the granted authorities for the specified user.
May throw any
AuthenticationExceptionor returnnullif the authorities are unavailable.- Specified by:
getUserDetailsin interfaceorg.acegisecurity.providers.x509.X509AuthoritiesPopulator
setUserDetailsService
public void setUserDetailsService(org.acegisecurity.userdetails.UserDetailsService authenticationDao)
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
setSubjectDNRegex
public void setSubjectDNRegex(java.lang.String subjectDNRegex)
- Sets the regular expression which will by used to extract the user name
from the certificate's Subject DN.
It should contain a single group; for example the default expression "CN=(.*?)," matches the common name field. So "CN=Jimi Hendrix, OU=..." will give a user name of "Jimi Hendrix".
The matches are case insensitive. So "emailAddress=(.*?)," will match "EMAILADDRESS=jimi@hendrix.org, CN=..." giving a user name "jimi@hendrix.org"
|
|||||||||
| Home >> All >> org >> acegisecurity >> providers >> x509 >> [ populator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.acegisecurity.providers.x509.populator.DaoX509AuthoritiesPopulator