Class SSLClientCertAuthentication
java.lang.Object
com.netscape.cmscore.authentication.SSLClientCertAuthentication
- All Implemented Interfaces:
AuthManager
SSL client based authentication.
- Version:
- $Revision$, $Date$
- Author:
- chrisho
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static org.slf4j.Logger
protected static String[]
protected static String[]
static final String
Fields inherited from interface org.dogtagpki.server.authentication.AuthManager
CRED_CERT_SERIAL_TO_REVOKE, CRED_CMC_SELF_SIGNED, CRED_CMC_SIGNING_CERT, CRED_HOST_NAME, CRED_SESSION_ID, CRED_SSL_CLIENT_CERT
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, initialization must follow. -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(IAuthCredentials authCred) Authenticate the given credentials.String[]
Returns a list of configuration parameter names.Gets the configuration substore used by this authentication managergets the plugin name of this authentication manager.getName()
gets the name of this authentication manager instanceString[]
Returns array of required credentials for this authentication manager.void
init
(String name, String implName, AuthManagerConfig config) Initialize this authentication manager.void
setAuthenticationConfig
(AuthenticationConfig authenticationConfig) void
shutdown()
prepare this authentication manager for shutdown.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
CRED_CERT
- See Also:
-
SERIALNUMBER
- See Also:
-
ISSUERDN
- See Also:
-
mRequiredCreds
-
mConfigParams
-
-
Constructor Details
-
SSLClientCertAuthentication
public SSLClientCertAuthentication()Default constructor, initialization must follow.
-
-
Method Details
-
getAuthenticationConfig
-
setAuthenticationConfig
-
init
Description copied from interface:AuthManager
Initialize this authentication manager.- Specified by:
init
in interfaceAuthManager
- Parameters:
name
- The name of this authentication manager instance.implName
- The name of the authentication manager plugin.config
- The configuration store for this authentication manager.- Throws:
EBaseException
- If an initialization error occurred.
-
authenticate
public IAuthToken authenticate(IAuthCredentials authCred) throws EMissingCredential, EInvalidCredentials, EBaseException Description copied from interface:AuthManager
Authenticate the given credentials.- Specified by:
authenticate
in interfaceAuthManager
- Parameters:
authCred
- The authentication credentials- Returns:
- authentication token
- Throws:
EMissingCredential
- If a required credential for this authentication manager is missing.EInvalidCredentials
- If credentials cannot be authenticated.EBaseException
- If an internal error occurred.
-
shutdown
public void shutdown()prepare this authentication manager for shutdown.- Specified by:
shutdown
in interfaceAuthManager
-
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.- Specified by:
getConfigParams
in interfaceAuthManager
- Returns:
- String array of configuration parameter names.
-
getRequiredCreds
Returns array of required credentials for this authentication manager.- Specified by:
getRequiredCreds
in interfaceAuthManager
- Returns:
- Array of required credentials.
-
getConfigStore
Gets the configuration substore used by this authentication manager- Specified by:
getConfigStore
in interfaceAuthManager
- Returns:
- configuration store
-
getName
gets the name of this authentication manager instance- Specified by:
getName
in interfaceAuthManager
- Returns:
- the name of this authentication manager.
-
getImplName
gets the plugin name of this authentication manager.- Specified by:
getImplName
in interfaceAuthManager
- Returns:
- the name of the authentication manager plugin.
-