public class

PasswordPolicyAwareContextSource

extends DefaultSpringSecurityContextSource
java.lang.Object
   ↳ LdapContextSource
     ↳ org.springframework.security.ldap.DefaultSpringSecurityContextSource
       ↳ org.springframework.security.ldap.ppolicy.PasswordPolicyAwareContextSource

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class org.springframework.security.ldap.DefaultSpringSecurityContextSource
Public Constructors
PasswordPolicyAwareContextSource(String providerUrl)
Public Methods
DirContext getContext(String principal, String credentials)
Protected Methods
Hashtable getAuthenticatedEnv(String principal, String credentials)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PasswordPolicyAwareContextSource (String providerUrl)

Public Methods

public DirContext getContext (String principal, String credentials)

Protected Methods

protected Hashtable getAuthenticatedEnv (String principal, String credentials)