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


Variable Index

 o CRED_PIN
 o CRED_PWD
 o CRED_UID
 o DEF_PIN_ATTR
 o DEF_REMOVE_PIN
 o mConfigParams
 o mMD5Digest
 o mPinAttr
 o mRemovePin
 o mRequiredCreds
 o mSHADigest
 o PROP_PIN_ATTR
 o PROP_REMOVE_PIN
 o SENTINEL_MD5
 o SENTINEL_NONE
 o SENTINEL_SHA

Constructor Index

 o UidPwdPinDirAuthentication()
Default constructor, initialization must follow.

Method Index

 o authenticate(LDAPConnection, IAuthCredentials, AuthToken)
Authenticates a user based on its uid, pwd, pin in the directory.
 o checkpin(LDAPConnection, String, String, String)
 o getConfigParams()
Returns a list of configuration parameter names.
 o getRequiredCreds()
Returns array of required credentials for this authentication manager.
 o init(String, String, IConfigStore)
Initializes the UidPwdDirBasedAuthentication auth manager.
 o verifyPassword(String)

Variables

 o CRED_UID
 public static final String CRED_UID
 o CRED_PWD
 public static final String CRED_PWD
 o CRED_PIN
 public static final String CRED_PIN
 o mRequiredCreds
 protected static String mRequiredCreds[]
 o PROP_REMOVE_PIN
 public static final String PROP_REMOVE_PIN
 o PROP_PIN_ATTR
 public static final String PROP_PIN_ATTR
 o DEF_REMOVE_PIN
 public static final boolean DEF_REMOVE_PIN
 o DEF_PIN_ATTR
 public static final String DEF_PIN_ATTR
 o SENTINEL_SHA
 protected static final byte SENTINEL_SHA
 o SENTINEL_MD5
 protected static final byte SENTINEL_MD5
 o SENTINEL_NONE
 protected static final byte SENTINEL_NONE
 o mConfigParams
 protected static String mConfigParams[]
 o mRemovePin
 protected boolean mRemovePin
 o mPinAttr
 protected String mPinAttr
 o mSHADigest
 protected MessageDigest mSHADigest
 o mMD5Digest
 protected MessageDigest mMD5Digest

Constructors

 o UidPwdPinDirAuthentication
 public UidPwdPinDirAuthentication()
Default constructor, initialization must follow.

Methods

 o init
 public void init(String name,
                  String implName,
                  IConfigStore config) throws EBaseException
Initializes the UidPwdDirBasedAuthentication auth manager.

Overrides:
init in class DirBasedAuthentication
 o verifyPassword
 protected void verifyPassword(String Password)
 o 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
 o checkpin
 protected void checkpin(LDAPConnection conn,
                         String userdn,
                         String uid,
                         String pin) throws EBaseException, LDAPException
 o 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
 o 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