|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.providers.x509.populator.DaoX509AuthoritiesPopulator
public class DaoX509AuthoritiesPopulator
Populates the X509 authorities via an UserDetailsService
.
Field Summary | |
---|---|
protected MessageSourceAccessor |
messages
Deprecated. |
Constructor Summary | |
---|---|
DaoX509AuthoritiesPopulator()
Deprecated. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
Deprecated. |
UserDetails |
getUserDetails(X509Certificate clientCert)
Deprecated. Obtains the granted authorities for the specified user. |
void |
setMessageSource(MessageSource messageSource)
Deprecated. |
void |
setSubjectDNRegex(String subjectDNRegex)
Deprecated. Sets the regular expression which will by used to extract the user name from the certificate's Subject DN. |
void |
setUserDetailsService(UserDetailsService userDetailsService)
Deprecated. |
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 DaoX509AuthoritiesPopulator()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public UserDetails getUserDetails(X509Certificate clientCert) throws AuthenticationException
X509AuthoritiesPopulator
May throw any
AuthenticationException
or return null
if the authorities are unavailable.
getUserDetails
in interface X509AuthoritiesPopulator
clientCert
- the X.509 certificate supplied
AuthenticationException
- if the user details are not available or the certificate isn't valid for the
application's purpose.public void setMessageSource(MessageSource messageSource)
setMessageSource
in interface MessageSourceAware
public void setSubjectDNRegex(String subjectDNRegex)
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 "[email protected], CN=..." giving a user name "[email protected]"
subjectDNRegex
- the regular expression to find in the subjectpublic void setUserDetailsService(UserDetailsService userDetailsService)
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |