Class BindAuthenticator
java.lang.Object
com.codename1.backend.security.ldap.BindAuthenticator
- All Implemented Interfaces:
LdapAuthenticator
Checks a password by binding as the user: the directory itself judges it,
and its password policy (lockout, expiry) applies. The user's name is found
from DN patterns (
uid={0},ou=people) or a LdapUserSearch, as in Spring.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String username, String password) voidsetUserAttributes(String... attributes) The attributes read from the user's entry; all by default.voidsetUserDnPatterns(String... patterns) Patterns relative to the base,{0}standing for the user name, tried in order.voidsetUserSearch(LdapUserSearch userSearch)
-
Constructor Details
-
BindAuthenticator
-
-
Method Details
-
setUserDnPatterns
Patterns relative to the base,{0}standing for the user name, tried in order. -
setUserSearch
-
setUserAttributes
The attributes read from the user's entry; all by default. -
authenticate
- Specified by:
authenticatein interfaceLdapAuthenticator
-