Package com.netscape.certsrv.ldap
Interface ILdapAuthInfo
-
- All Known Implementing Classes:
LdapAuthInfo
public interface ILdapAuthInfoClass for obtaining ldap authentication info from the configuration store. Two types of authentication is basic and SSL client authentication.- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static intLDAP_AUTHTYPE_BASICAUTHstatic intLDAP_AUTHTYPE_NONEstatic intLDAP_AUTHTYPE_SSLCLIENTAUTHstatic java.lang.StringLDAP_BASICAUTH_STRstatic java.lang.StringLDAP_SSLCLIENTAUTH_STRstatic java.lang.StringPROP_BINDDNstatic java.lang.StringPROP_BINDDN_DEFAULTstatic java.lang.StringPROP_BINDPWstatic java.lang.StringPROP_BINDPW_PROMPTstatic java.lang.StringPROP_CLIENTCERTNICKNAMEstatic java.lang.StringPROP_LDAPAUTHTYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPassword(java.lang.String prompt, java.lang.String pw)Add password to private password data structure.intgetAuthType()Get authentication type.voidinit(IConfigStore config)Initialize this class from the config store.voidinit(IConfigStore config, java.lang.String host, int port, boolean secure)Initialize this class from the config store.voidremovePassword(java.lang.String prompt)Remove password from private password data structure.voidreset()Reset the connection to the host
-
-
-
Field Detail
-
PROP_LDAPAUTHTYPE
static final java.lang.String PROP_LDAPAUTHTYPE
- See Also:
- Constant Field Values
-
PROP_CLIENTCERTNICKNAME
static final java.lang.String PROP_CLIENTCERTNICKNAME
- See Also:
- Constant Field Values
-
PROP_BINDDN
static final java.lang.String PROP_BINDDN
- See Also:
- Constant Field Values
-
PROP_BINDPW
static final java.lang.String PROP_BINDPW
- See Also:
- Constant Field Values
-
PROP_BINDPW_PROMPT
static final java.lang.String PROP_BINDPW_PROMPT
- See Also:
- Constant Field Values
-
PROP_BINDDN_DEFAULT
static final java.lang.String PROP_BINDDN_DEFAULT
- See Also:
- Constant Field Values
-
LDAP_BASICAUTH_STR
static final java.lang.String LDAP_BASICAUTH_STR
- See Also:
- Constant Field Values
-
LDAP_SSLCLIENTAUTH_STR
static final java.lang.String LDAP_SSLCLIENTAUTH_STR
- See Also:
- Constant Field Values
-
LDAP_AUTHTYPE_NONE
static final int LDAP_AUTHTYPE_NONE
- See Also:
- Constant Field Values
-
LDAP_AUTHTYPE_BASICAUTH
static final int LDAP_AUTHTYPE_BASICAUTH
- See Also:
- Constant Field Values
-
LDAP_AUTHTYPE_SSLCLIENTAUTH
static final int LDAP_AUTHTYPE_SSLCLIENTAUTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
void init(IConfigStore config) throws EBaseException
Initialize this class from the config store.- Parameters:
config- The config store from which to initialize.- Throws:
EBaseException- Due to failure of the initialization process.
-
init
void init(IConfigStore config, java.lang.String host, int port, boolean secure) throws EBaseException
Initialize this class from the config store. Based on host, port, and secure boolean info. which allows an actual attempt on the server to verify credentials.- Parameters:
config- The config store from which to initialize.- Throws:
EBaseException- Due to failure of the initialization process.
-
reset
void reset()
Reset the connection to the host
-
getAuthType
int getAuthType()
Get authentication type.- Returns:
- one of:
LdapAuthInfo.LDAP_AUTHTYPE_BASICAUTH or LdapAuthInfo.LDAP_AUTHTYPE_SSLCLIENTAUTH
-
addPassword
void addPassword(java.lang.String prompt, java.lang.String pw)Add password to private password data structure.- Parameters:
prompt- Password prompt.pw- Password itself.
-
removePassword
void removePassword(java.lang.String prompt)
Remove password from private password data structure.- Parameters:
prompt- Identify password to remove with prompt.
-
-