|
||||||||||
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.PortalEnroll
public class PortalEnroll
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
|
protected static java.lang.String |
PROP_AUTHTYPE
|
protected static java.lang.String |
PROP_BINDDN
|
protected static java.lang.String |
PROP_BINDPW
|
protected static java.lang.String |
PROP_HOST
|
protected static java.lang.String |
PROP_LDAPAUTH
|
protected static java.lang.String |
PROP_LDAPCONN
|
protected static java.lang.String |
PROP_OBJECTCLASS
|
protected static java.lang.String |
PROP_PORT
|
protected static java.lang.String |
PROP_SECURECONN
|
protected static java.lang.String |
PROP_VERSION
|
Fields inherited from class com.netscape.cms.authentication.DirBasedAuthentication |
---|
DEFAULT_DNPATTERN, 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 | |
---|---|
PortalEnroll()
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[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings. |
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 PortalEnrollment auth manager. |
void |
initLdapAttrs(netscape.ldap.LDAPSchema dirSchema,
java.lang.String oclass)
|
java.lang.String |
regist(AuthToken token,
java.lang.String uid)
adds a user to the directory. |
Methods inherited from class com.netscape.cms.authentication.DirBasedAuthentication |
---|
authenticate, formCertInfo, formSubjectName, getConfigStore, 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 |
---|
protected static final java.lang.String PROP_LDAPAUTH
protected static final java.lang.String PROP_AUTHTYPE
protected static final java.lang.String PROP_BINDDN
protected static final java.lang.String PROP_BINDPW
protected static final java.lang.String PROP_LDAPCONN
protected static final java.lang.String PROP_HOST
protected static final java.lang.String PROP_PORT
protected static final java.lang.String PROP_SECURECONN
protected static final java.lang.String PROP_VERSION
protected static final java.lang.String PROP_OBJECTCLASS
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 PortalEnroll() throws EBaseException
EBaseException
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 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[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
getExtendedPluginInfo
in class DirBasedAuthentication
public java.lang.String[] getRequiredCreds()
getRequiredCreds
in interface IAuthManager
getRequiredCreds
in class DirBasedAuthentication
public java.lang.String regist(AuthToken token, java.lang.String uid)
token
- authentication tokenuid
- the user's id.
public void initLdapAttrs(netscape.ldap.LDAPSchema dirSchema, java.lang.String oclass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |