|
||||||||||
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.UidPwdDirAuthentication
public class UidPwdDirAuthentication
uid/pwd directory based authentication manager
Field Summary | |
---|---|
static java.lang.String |
CRED_PWD
|
static java.lang.String |
CRED_UID
|
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.profile.IProfileAuthenticator |
---|
AUTHENTICATED_NAME |
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 | |
---|---|
UidPwdDirAuthentication()
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 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 |
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. |
Methods inherited from class com.netscape.cms.authentication.DirBasedAuthentication |
---|
authenticate, formCertInfo, formSubjectName, getConfigStore, getExtendedPluginInfo, getImplName, getLdapAttrs, getLdapByteAttrs, getName, init, init, log, setAuthTokenByteValue, setAuthTokenStringValue, setAuthTokenValues, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.netscape.certsrv.profile.IProfileAuthenticator |
---|
getConfigStore |
Methods inherited from interface com.netscape.certsrv.authentication.IAuthManager |
---|
authenticate, getImplName, getName, init, shutdown |
Field Detail |
---|
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
Constructor Detail |
---|
public UidPwdDirAuthentication()
Method Detail |
---|
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 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
public void init(IProfile profile, IConfigStore config) throws EProfileException
IProfileAuthenticator
init
in interface IProfileAuthenticator
profile
- owner of this authenticatorconfig
- configuration store
EProfileException
- failed to initializepublic java.lang.String getName(java.util.Locale locale)
getName
in interface IProfileAuthenticator
locale
- end user locale
public java.lang.String getText(java.util.Locale locale)
getText
in interface IProfileAuthenticator
locale
- end user locale
public java.util.Enumeration getValueNames()
getValueNames
in interface IProfileAuthenticator
public boolean isValueWriteable(java.lang.String name)
IProfileAuthenticator
isValueWriteable
in interface IProfileAuthenticator
name
- property name
public IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
getValueDescriptor
in interface IProfileAuthenticator
locale
- user localename
- property name
public void populate(IAuthToken token, IRequest request) throws EProfileException
IProfileAuthenticator
populate
in interface IProfileAuthenticator
token
- authentication tokenrequest
- request
EProfileException
- failed to populatepublic boolean isSSLClientRequired()
IProfileAuthenticator
isSSLClientRequired
in interface IProfileAuthenticator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |