public class UserPwdDirAuthentication extends DirBasedAuthentication implements IProfileAuthenticator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CRED_PWD |
static java.lang.String |
CRED_UID |
java.lang.String |
mAttr |
protected java.lang.String |
mAttrDesc |
protected java.lang.String |
mAttrName |
protected static java.lang.String[] |
mConfigParams |
protected java.lang.String[] |
mRequiredCreds |
DEFAULT_DNPATTERN, mBaseDN, mBoundConnEnable, mConfig, mConnFactory, mExtendedPluginInfo, mGroupObjectClass, mGroups, mGroupsBaseDN, mGroupsEnable, mGroupUserIDName, mImplName, mLdapAttrs, mLdapByteAttrs, mLdapConfig, mLdapStringAttrs, mLogger, mName, mPattern, mSearchGroupUserByUserdn, mTag, mUserIDName, PROP_BASEDN, PROP_DNPATTERN, PROP_GROUP_OBJECT_CLASS, PROP_GROUP_USERID_NAME, PROP_GROUPS, PROP_GROUPS_BASEDN, PROP_GROUPS_ENABLE, PROP_LDAP, PROP_LDAP_BOUND_CONN, PROP_LDAP_BOUND_TAG, PROP_LDAPBYTEATTRS, PROP_LDAPSTRINGATTRS, PROP_SEARCH_GROUP_USER_BY_USERDN, PROP_USERID_NAME, USER_DNAUTHENTICATED_NAMECRED_CERT_SERIAL_TO_REVOKE, CRED_HOST_NAME, CRED_SESSION_ID, CRED_SSL_CLIENT_CERTHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
UserPwdDirAuthentication()
Default constructor, initialization must follow.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
authenticate(netscape.ldap.LDAPConnection conn,
IAuthCredentials authCreds,
AuthToken token)
Authenticates a user based on attr, pwd in the directory.
|
java.lang.String[] |
getConfigParams()
Returns a list of configuration parameter names.
|
java.lang.String |
getName(java.util.Locale locale)
Retrieves the localizable name of this policy.
|
java.lang.String[] |
getRequiredCreds()
Returns array of required credentials for this authentication manager.
|
java.lang.String |
getText(java.util.Locale locale)
Retrieves the localizable description of this policy.
|
IDescriptor |
getValueDescriptor(java.util.Locale locale,
java.lang.String name)
Retrieves the descriptor of the given value
parameter by name.
|
java.util.Enumeration<java.lang.String> |
getValueNames()
Retrieves a list of names of the value parameter.
|
void |
init(IProfile profile,
IConfigStore config)
Initializes this default policy.
|
void |
init(java.lang.String name,
java.lang.String implName,
IConfigStore config)
Initializes the UdnPwdDirAuthentication auth manager.
|
boolean |
isSSLClientRequired()
Checks if this authenticator requires SSL client authentication.
|
boolean |
isValueWriteable(java.lang.String name)
Checks if the value of the given property should be
serializable into the request.
|
void |
populate(IAuthToken token,
IRequest request)
Populates authentication specific information into the
request for auditing purposes.
|
authenticate, formCertInfo, formSubjectName, getConfigStore, getExtendedPluginInfo, getImplName, getLdapAttrs, getLdapByteAttrs, getName, init, log, setAuthTokenByteValue, setAuthTokenStringValue, setAuthTokenValues, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigStoreauthenticate, getImplName, getName, shutdownpublic static final java.lang.String CRED_UID
public static final java.lang.String CRED_PWD
public java.lang.String mAttr
protected java.lang.String[] mRequiredCreds
protected java.lang.String mAttrName
protected java.lang.String mAttrDesc
protected static java.lang.String[] mConfigParams
public UserPwdDirAuthentication()
public void init(java.lang.String name,
java.lang.String implName,
IConfigStore config)
throws EBaseException
init in interface IAuthManagerinit in class DirBasedAuthenticationname - - The name for this authentication manager instance.implName - - The name of the authentication manager plugin.config - - The configuration store for this instance.EBaseException - If an error occurs during initialization.protected java.lang.String authenticate(netscape.ldap.LDAPConnection conn,
IAuthCredentials authCreds,
AuthToken token)
throws EBaseException
authenticate in class DirBasedAuthenticationauthCreds - The authentication credentials.EInvalidCredentials - If the attr and password are not validEBaseException - If an internal error occurs.public java.lang.String[] getConfigParams()
getConfigParams in interface IAuthManagergetConfigParams in class DirBasedAuthenticationpublic java.lang.String[] getRequiredCreds()
getRequiredCreds in interface IAuthManagergetRequiredCreds in class DirBasedAuthenticationpublic void init(IProfile profile, IConfigStore config) throws EProfileException
IProfileAuthenticatorinit in interface IProfileAuthenticatorprofile - owner of this authenticatorconfig - configuration storeEProfileException - failed to initializepublic java.lang.String getName(java.util.Locale locale)
getName in interface IProfileAuthenticatorlocale - end user localepublic java.lang.String getText(java.util.Locale locale)
getText in interface IProfileAuthenticatorlocale - end user localepublic java.util.Enumeration<java.lang.String> getValueNames()
getValueNames in interface IProfileAuthenticatorpublic boolean isValueWriteable(java.lang.String name)
IProfileAuthenticatorisValueWriteable in interface IProfileAuthenticatorname - property namepublic IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
getValueDescriptor in interface IProfileAuthenticatorlocale - user localename - property namepublic void populate(IAuthToken token, IRequest request) throws EProfileException
IProfileAuthenticatorpopulate in interface IProfileAuthenticatortoken - authentication tokenrequest - requestEProfileException - failed to populatepublic boolean isSSLClientRequired()
IProfileAuthenticatorisSSLClientRequired in interface IProfileAuthenticator