java.lang.Object | |
↳ | org.springframework.security.ldap.userdetails.LdapUserDetailsMapper |
The context mapper used by the LDAP authentication provider to create an LDAP user object.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a fully populated UserDetails object for use by the security framework.
| |||||||||||
Reverse of the above operation.
| |||||||||||
Determines whether role field values will be converted to upper case when loaded.
| |||||||||||
The name of the attribute which contains the user's password.
| |||||||||||
The names of any attributes in the user's entry which represent application
roles.
| |||||||||||
The prefix that should be applied to the role names
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a GrantedAuthority from a role attribute.
| |||||||||||
Extension point to allow customized creation of the user's password from
the attribute stored in the directory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.security.ldap.userdetails.UserDetailsContextMapper
|
Creates a fully populated UserDetails object for use by the security framework.
ctx | the context object which contains the user information. |
---|---|
username | the user's supplied login name. |
Reverse of the above operation. Populates a context object from the supplied user object. Called when saving a user, for example.
Determines whether role field values will be converted to upper case when loaded. The default is true.
convertToUpperCase | true if the roles should be converted to upper case. |
---|
The name of the attribute which contains the user's password. Defaults to "userPassword".
passwordAttributeName | the name of the attribute |
---|
The names of any attributes in the user's entry which represent application roles. These will be converted to GrantedAuthoritys and added to the list in the returned LdapUserDetails object. The attribute values must be Strings by default.
roleAttributes | the names of the role attributes. |
---|
The prefix that should be applied to the role names
rolePrefix | the prefix (defaults to "ROLE_"). |
---|
Creates a GrantedAuthority from a role attribute. Override to customize authority object creation.
The default implementation converts string attributes to roles, making use of the rolePrefix and convertToUpperCase properties. Non-String attributes are ignored.
role | the attribute returned from |
---|
Extension point to allow customized creation of the user's password from the attribute stored in the directory.
passwordValue | the value of the password attribute |
---|