All Packages Class Hierarchy This Package Previous Next Index
Class com.netscape.certsrv.authentication.UidPwdPinDirAuthentication
com.netscape.certsrv.authentication.DirBasedAuthentication
|
+----com.netscape.certsrv.authentication.UidPwdPinDirAuthentication
- public class UidPwdPinDirAuthentication
- extends DirBasedAuthentication
uid/pwd/pin directory based authentication manager
-
CRED_PIN
-
-
CRED_PWD
-
-
CRED_UID
-
-
DEF_PIN_ATTR
-
-
DEF_REMOVE_PIN
-
-
mConfigParams
-
-
mMD5Digest
-
-
mPinAttr
-
-
mRemovePin
-
-
mRequiredCreds
-
-
mSHADigest
-
-
PROP_PIN_ATTR
-
-
PROP_REMOVE_PIN
-
-
SENTINEL_MD5
-
-
SENTINEL_NONE
-
-
SENTINEL_SHA
-
-
UidPwdPinDirAuthentication()
- Default constructor, initialization must follow.
-
authenticate(LDAPConnection, IAuthCredentials, AuthToken)
- Authenticates a user based on its uid, pwd, pin in the directory.
-
checkpin(LDAPConnection, String, String, String)
-
-
getConfigParams()
- Returns a list of configuration parameter names.
-
getRequiredCreds()
- Returns array of required credentials for this authentication manager.
-
init(String, String, IConfigStore)
- Initializes the UidPwdDirBasedAuthentication auth manager.
-
verifyPassword(String)
-
CRED_UID
public static final String CRED_UID
CRED_PWD
public static final String CRED_PWD
CRED_PIN
public static final String CRED_PIN
mRequiredCreds
protected static String mRequiredCreds[]
PROP_REMOVE_PIN
public static final String PROP_REMOVE_PIN
PROP_PIN_ATTR
public static final String PROP_PIN_ATTR
DEF_REMOVE_PIN
public static final boolean DEF_REMOVE_PIN
DEF_PIN_ATTR
public static final String DEF_PIN_ATTR
SENTINEL_SHA
protected static final byte SENTINEL_SHA
SENTINEL_MD5
protected static final byte SENTINEL_MD5
SENTINEL_NONE
protected static final byte SENTINEL_NONE
mConfigParams
protected static String mConfigParams[]
mRemovePin
protected boolean mRemovePin
mPinAttr
protected String mPinAttr
mSHADigest
protected MessageDigest mSHADigest
mMD5Digest
protected MessageDigest mMD5Digest
UidPwdPinDirAuthentication
public UidPwdPinDirAuthentication()
- Default constructor, initialization must follow.
init
public void init(String name,
String implName,
IConfigStore config) throws EBaseException
- Initializes the UidPwdDirBasedAuthentication auth manager.
- Overrides:
- init in class DirBasedAuthentication
verifyPassword
protected void verifyPassword(String Password)
authenticate
protected String authenticate(LDAPConnection conn,
IAuthCredentials authCreds,
AuthToken token) throws EBaseException
- Authenticates a user based on its uid, pwd, pin in the directory.
- Parameters:
- authCreds - The authentication credentials with uid, pwd, pin.
- Returns:
- The user's ldap entry dn.
- Throws: EInvalidCredentials
- If the uid and password are not valid
- Throws: EBaseException
- If an internal error occurs.
- Overrides:
- authenticate in class DirBasedAuthentication
checkpin
protected void checkpin(LDAPConnection conn,
String userdn,
String uid,
String pin) throws EBaseException, LDAPException
getConfigParams
public String[] getConfigParams()
- Returns a list of configuration parameter names.
The list is passed to the configuration console so instances of
this implementation can be configured through the console.
- Returns:
- String array of configuration parameter names.
- Overrides:
- getConfigParams in class DirBasedAuthentication
getRequiredCreds
public String[] getRequiredCreds()
- Returns array of required credentials for this authentication manager.
- Returns:
- Array of required credentials.
- Overrides:
- getRequiredCreds in class DirBasedAuthentication
All Packages Class Hierarchy This Package Previous Next Index