public class UdnPwdDirAuthentication extends DirBasedAuthentication
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CRED_PWD |
static java.lang.String |
CRED_UDN |
protected static java.lang.String[] |
mConfigParams |
protected static java.lang.String[] |
mRequiredCreds |
DEFAULT_DNPATTERN, mBaseDN, mConfig, mConnFactory, mExtendedPluginInfo, mGroupObjectClass, mGroups, mGroupsBaseDN, mGroupsEnable, mGroupUserIDName, mImplName, mLdapAttrs, mLdapByteAttrs, mLdapConfig, mLdapStringAttrs, mLogger, mName, mPattern, mSearchGroupUserByUserdn, mUserIDName, PROP_BASEDN, PROP_DNPATTERN, PROP_GROUP_OBJECT_CLASS, PROP_GROUP_USERID_NAME, PROP_GROUPS, PROP_GROUPS_BASEDN, PROP_GROUPS_ENABLE, PROP_LDAP, PROP_LDAPBYTEATTRS, PROP_LDAPSTRINGATTRS, PROP_SEARCH_GROUP_USER_BY_USERDN, PROP_USERID_NAME, USER_DNCRED_CERT_SERIAL_TO_REVOKE, CRED_HOST_NAME, CRED_SESSION_ID, CRED_SSL_CLIENT_CERTHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
UdnPwdDirAuthentication()
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 udn, pwd in the directory.
|
java.lang.String[] |
getConfigParams()
Returns a list of configuration parameter names.
|
java.lang.String[] |
getRequiredCreds()
Returns array of required credentials for this authentication manager.
|
void |
init(java.lang.String name,
java.lang.String implName,
IConfigStore config)
Initializes the UdnPwdDirAuthentication auth manager.
|
authenticate, formCertInfo, formSubjectName, getConfigStore, getExtendedPluginInfo, getImplName, getLdapAttrs, getLdapByteAttrs, getName, init, log, setAuthTokenByteValue, setAuthTokenStringValue, setAuthTokenValues, shutdownpublic static final java.lang.String CRED_UDN
public static final java.lang.String CRED_PWD
protected static java.lang.String[] mRequiredCreds
protected static java.lang.String[] mConfigParams
public UdnPwdDirAuthentication()
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 udn 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 DirBasedAuthentication