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, mImplName, mLdapAttrs, mLdapByteAttrs, mLdapConfig, mLdapStringAttrs, mLogger, mName, mPattern, PROP_BASEDN, PROP_DNPATTERN, PROP_LDAP, PROP_LDAPBYTEATTRS, PROP_LDAPSTRINGATTRS, USER_DN
CRED_CERT_SERIAL_TO_REVOKE, CRED_HOST_NAME, CRED_SESSION_ID, CRED_SSL_CLIENT_CERT
HELP_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, shutdown
public 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 IAuthManager
init
in class DirBasedAuthentication
name
- - 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 DirBasedAuthentication
authCreds
- 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 IAuthManager
getConfigParams
in class DirBasedAuthentication
public java.lang.String[] getRequiredCreds()
getRequiredCreds
in interface IAuthManager
getRequiredCreds
in class DirBasedAuthentication