public class UidPwdDirAuthentication extends DirBasedAuthentication implements IProfileAuthenticator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CRED_PWD |
static java.lang.String |
CRED_UID |
protected static java.lang.String[] |
mConfigParams |
protected static java.lang.String[] |
mRequiredCreds |
DEFAULT_DNPATTERN, mBaseDN, mBoundConnEnable, mConfig, mConnFactory, mExtendedPluginInfo, mGroupObjectClass, mGroups, mGroupsBaseDN, mGroupsEnable, mGroupUserIDName, mImplName, mLdapAttrs, mLdapByteAttrs, mLdapConfig, mLdapStringAttrs, mLogger, mName, mPattern, mSearchGroupUserByUserdn, mTag, mUserIDName, PROP_BASEDN, PROP_DNPATTERN, PROP_GROUP_OBJECT_CLASS, PROP_GROUP_USERID_NAME, PROP_GROUPS, PROP_GROUPS_BASEDN, PROP_GROUPS_ENABLE, PROP_LDAP, PROP_LDAP_BOUND_CONN, PROP_LDAP_BOUND_TAG, PROP_LDAPBYTEATTRS, PROP_LDAPSTRINGATTRS, PROP_SEARCH_GROUP_USER_BY_USERDN, PROP_USERID_NAME, USER_DN
AUTHENTICATED_NAME
CRED_CERT_SERIAL_TO_REVOKE, CRED_HOST_NAME, CRED_SESSION_ID, CRED_SSL_CLIENT_CERT
HELP_TEXT, HELP_TOKEN
Constructor and Description |
---|
UidPwdDirAuthentication() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
authenticate(netscape.ldap.LDAPConnection conn,
IAuthCredentials authCreds,
AuthToken token)
Authenticates a user based on uid, pwd in the directory.
|
java.lang.String[] |
getConfigParams()
Returns a list of configuration parameter names.
|
java.lang.String |
getName(java.util.Locale locale)
Retrieves the localizable name of this policy.
|
java.lang.String[] |
getRequiredCreds()
Returns array of required credentials for this authentication manager.
|
java.lang.String |
getText(java.util.Locale locale)
Retrieves the localizable description of this policy.
|
IDescriptor |
getValueDescriptor(java.util.Locale locale,
java.lang.String name)
Retrieves the descriptor of the given value
parameter by name.
|
java.util.Enumeration<java.lang.String> |
getValueNames()
Retrieves a list of names of the value parameter.
|
void |
init(IProfile profile,
IConfigStore config)
Initializes this default policy.
|
boolean |
isSSLClientRequired()
Checks if this authenticator requires SSL client authentication.
|
boolean |
isValueWriteable(java.lang.String name)
Checks if the value of the given property should be
serializable into the request.
|
void |
populate(IAuthToken token,
IRequest request)
Populates authentication specific information into the
request for auditing purposes.
|
authenticate, formCertInfo, formSubjectName, getConfigStore, getExtendedPluginInfo, getImplName, getLdapAttrs, getLdapByteAttrs, getName, init, init, log, setAuthTokenByteValue, setAuthTokenStringValue, setAuthTokenValues, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigStore
authenticate, getImplName, getName, init, shutdown
public static final java.lang.String CRED_UID
public static final java.lang.String CRED_PWD
protected static java.lang.String[] mRequiredCreds
protected static java.lang.String[] mConfigParams
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 uid 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
public void init(IProfile profile, IConfigStore config) throws EProfileException
IProfileAuthenticator
init
in interface IProfileAuthenticator
profile
- owner of this authenticatorconfig
- configuration storeEProfileException
- failed to initializepublic java.lang.String getName(java.util.Locale locale)
getName
in interface IProfileAuthenticator
locale
- end user localepublic java.lang.String getText(java.util.Locale locale)
getText
in interface IProfileAuthenticator
locale
- end user localepublic java.util.Enumeration<java.lang.String> getValueNames()
getValueNames
in interface IProfileAuthenticator
public boolean isValueWriteable(java.lang.String name)
IProfileAuthenticator
isValueWriteable
in interface IProfileAuthenticator
name
- property namepublic IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
getValueDescriptor
in interface IProfileAuthenticator
locale
- user localename
- property namepublic void populate(IAuthToken token, IRequest request) throws EProfileException
IProfileAuthenticator
populate
in interface IProfileAuthenticator
token
- authentication tokenrequest
- requestEProfileException
- failed to populatepublic boolean isSSLClientRequired()
IProfileAuthenticator
isSSLClientRequired
in interface IProfileAuthenticator