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 Stringstatic final Stringstatic org.slf4j.Loggerprotected static String[]protected static String[]static final StringFields 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.voidinit(String name, String implName, AuthManagerConfig config) Initialize this authentication manager.voidsetAuthenticationConfig(AuthenticationConfig authenticationConfig) voidshutdown()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:AuthManagerInitialize this authentication manager.- Specified by:
initin 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:AuthManagerAuthenticate the given credentials.- Specified by:
authenticatein 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:
shutdownin 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:
getConfigParamsin interfaceAuthManager- Returns:
- String array of configuration parameter names.
-
getRequiredCreds
Returns array of required credentials for this authentication manager.- Specified by:
getRequiredCredsin interfaceAuthManager- Returns:
- Array of required credentials.
-
getConfigStore
Gets the configuration substore used by this authentication manager- Specified by:
getConfigStorein interfaceAuthManager- Returns:
- configuration store
-
getName
gets the name of this authentication manager instance- Specified by:
getNamein interfaceAuthManager- Returns:
- the name of this authentication manager.
-
getImplName
gets the plugin name of this authentication manager.- Specified by:
getImplNamein interfaceAuthManager- Returns:
- the name of the authentication manager plugin.
-