Class NullAuthentication
java.lang.Object
com.netscape.cmscore.authentication.NullAuthentication
- All Implemented Interfaces:
AuthManager
This authentication does nothing but just returns an empty authToken.
- Version:
- $Revision$, $Date$
- Author:
- chrisho
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerprotected static String[]protected static 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(IAuthCredentials authCred) authenticates nothingString[]Get the list of configuration parameter names required by this authentication manager.gets the configuration substore used by this authentication managergets the name of the authentication manager plugingetName()gets the name of this authentication manager instanceString[]get the list of authentication credential attribute names required by this authentication manager.voidinit(String name, String implName, AuthManagerConfig config) initializes the NullAuthentication auth managervoidsetAuthenticationConfig(AuthenticationConfig authenticationConfig) voidshutdown()disconnects the member connection
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mConfigParams
-
mRequiredCred
-
-
Constructor Details
-
NullAuthentication
public NullAuthentication()
-
-
Method Details
-
getAuthenticationConfig
-
setAuthenticationConfig
-
init
initializes the NullAuthentication auth managercalled by AuthSubsystem init() method, when initializing all available authentication managers.
- Specified by:
initin interfaceAuthManager- Parameters:
name- - Name assigned to this authentication manager instance.implName- - Name of the authentication plugin.config- - The configuration store used by the authentication subsystem.- Throws:
EBaseException- If an initialization error occurred.
-
authenticate
public IAuthToken authenticate(IAuthCredentials authCred) throws EMissingCredential, EInvalidCredentials, EBaseException authenticates nothingcalled by other subsystems or their servlets to authenticate administrators
- Specified by:
authenticatein interfaceAuthManager- Parameters:
authCred- Authentication credentials. "uid" and "pwd" are required.- Returns:
- the authentication token (authToken) that contains the following
userdn = [userdn, in case of success]
authMgrName = [authMgrName]
-
getName
gets the name of this authentication manager instance- Specified by:
getNamein interfaceAuthManager- Returns:
- the name of this authentication manager.
-
getImplName
gets the name of the authentication manager plugin- Specified by:
getImplNamein interfaceAuthManager- Returns:
- the name of the authentication manager plugin.
-
getRequiredCreds
get the list of authentication credential attribute names required by this authentication manager. Generally used by servlets that use this authentication manager, to retrieve required credentials from the user (e.g. Javascript form data)- Specified by:
getRequiredCredsin interfaceAuthManager- Returns:
- attribute names in Vector
-
getConfigParams
Get the list of configuration parameter names required by this authentication manager. In this case, an empty list.- Specified by:
getConfigParamsin interfaceAuthManager- Returns:
- String array of configuration parameters.
-
shutdown
public void shutdown()disconnects the member connection- Specified by:
shutdownin interfaceAuthManager
-
getConfigStore
gets the configuration substore used by this authentication manager- Specified by:
getConfigStorein interfaceAuthManager- Returns:
- configuration store
-