|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
org.springframework.security.ldap.DefaultSpringSecurityContextSource
org.springframework.security.ldap.ppolicy.PasswordPolicyAwareContextSource
public class PasswordPolicyAwareContextSource
Extended version of the DefaultSpringSecurityContextSource which adds support for
the use of PasswordPolicyControl to make use of user account data stored in the directory.
When binding with specific username (not the userDn) property it will connect first as the userDn, then reconnect as the user in order to retrieve any password-policy control sent with the response, even if an exception occurs.
| Field Summary |
|---|
| Fields inherited from class org.springframework.security.ldap.DefaultSpringSecurityContextSource |
|---|
logger |
| Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource |
|---|
password, SUN_LDAP_POOLING_FLAG, userDn |
| Constructor Summary | |
|---|---|
PasswordPolicyAwareContextSource(java.lang.String providerUrl)
|
|
| Method Summary | |
|---|---|
protected java.util.Hashtable |
getAuthenticatedEnv(java.lang.String principal,
java.lang.String credentials)
|
javax.naming.directory.DirContext |
getContext(java.lang.String principal,
java.lang.String credentials)
|
| Methods inherited from class org.springframework.ldap.core.support.LdapContextSource |
|---|
getDirContextInstance |
| Methods inherited from class org.springframework.ldap.core.support.AbstractContextSource |
|---|
afterPropertiesSet, assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticationSource, getBase, getBaseLdapPath, getBaseLdapPathAsString, getContextFactory, getDirObjectFactory, getReadOnlyContext, getReadWriteContext, getUrls, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setAuthenticationStrategy, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPassword, setPooled, setReferral, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordPolicyAwareContextSource(java.lang.String providerUrl)
| Method Detail |
|---|
public javax.naming.directory.DirContext getContext(java.lang.String principal,
java.lang.String credentials)
throws PasswordPolicyException
getContext in interface org.springframework.ldap.core.ContextSourcegetContext in class org.springframework.ldap.core.support.AbstractContextSourcePasswordPolicyException
protected java.util.Hashtable getAuthenticatedEnv(java.lang.String principal,
java.lang.String credentials)
getAuthenticatedEnv in class org.springframework.ldap.core.support.AbstractContextSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||