|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.authentication.DirBasedAuthentication
com.netscape.cms.authentication.UdnPwdDirAuthentication
public class UdnPwdDirAuthentication
udn/pwd directory based authentication manager
Field Summary | |
---|---|
static java.lang.String |
CRED_PWD
|
static java.lang.String |
CRED_UDN
|
protected static java.lang.String[] |
mConfigParams
|
protected static java.lang.String[] |
mRequiredCreds
|
Fields inherited from class com.netscape.cms.authentication.DirBasedAuthentication |
---|
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 |
Fields inherited from interface com.netscape.certsrv.authentication.IAuthManager |
---|
CRED_CERT_SERIAL_TO_REVOKE, CRED_HOST_NAME, CRED_SESSION_ID, CRED_SSL_CLIENT_CERT |
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
UdnPwdDirAuthentication()
Default constructor, initialization must follow. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.netscape.cms.authentication.DirBasedAuthentication |
---|
authenticate, formCertInfo, formSubjectName, getConfigStore, getExtendedPluginInfo, getImplName, getLdapAttrs, getLdapByteAttrs, getName, init, log, setAuthTokenByteValue, setAuthTokenStringValue, setAuthTokenValues, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public UdnPwdDirAuthentication()
Method Detail |
---|
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 valid
EBaseException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |