public class SessionAuthentication extends java.lang.Object implements IProfileAuthenticator
AUTHENTICATED_NAME
CRED_CERT_SERIAL_TO_REVOKE, CRED_CMC_SELF_SIGNED, CRED_CMC_SIGNING_CERT, CRED_HOST_NAME, CRED_SESSION_ID, CRED_SSL_CLIENT_CERT
Constructor and Description |
---|
SessionAuthentication() |
Modifier and Type | Method and Description |
---|---|
IAuthToken |
authenticate(IAuthCredentials authCred)
Authenticate user.
|
java.lang.String[] |
getConfigParams()
Get configuration parameters for this implementation.
|
IConfigStore |
getConfigStore()
gets the configuretion substore used by this authentication
manager
|
java.lang.String |
getImplName()
Gets the plugin name of authentication manager.
|
java.lang.String |
getName()
Gets the name of this authentication manager.
|
java.lang.String |
getName(java.util.Locale locale)
Retrieves the localizable name of this policy.
|
java.lang.String[] |
getRequiredCreds()
Gets a list of the required credentials for this authentication manager.
|
java.lang.String |
getText(java.util.Locale locale)
Retrieves the localizable description of this policy.
|
IDescriptor |
getValueDescriptor(java.util.Locale locale,
java.lang.String name)
Retrieves the descriptor of the given value
parameter by name.
|
java.util.Enumeration<java.lang.String> |
getValueNames()
Retrieves a list of names of the value parameter.
|
void |
init(IProfile profile,
IConfigStore config)
Initializes this default policy.
|
void |
init(java.lang.String instName,
java.lang.String implName,
IConfigStore config)
Initialize this authentication manager.
|
boolean |
isSSLClientRequired()
Checks if this authenticator requires SSL client authentication.
|
boolean |
isValueWriteable(java.lang.String name)
Checks if the value of the given property should be
serializable into the request.
|
void |
populate(IAuthToken token,
IRequest request)
Populates authentication specific information into the
request for auditing purposes.
|
void |
shutdown()
prepare this authentication manager for shutdown.
|
public void init(java.lang.String instName, java.lang.String implName, IConfigStore config) throws EBaseException
IAuthManager
init
in interface IAuthManager
instName
- The name of this authentication manager instance.implName
- The name of the authentication manager plugin.config
- The configuration store for this authentication manager.EBaseException
- If an initialization error occurred.public java.lang.String getName()
getName
in interface IAuthManager
public java.lang.String getImplName()
getImplName
in interface IAuthManager
public boolean isSSLClientRequired()
IProfileAuthenticator
isSSLClientRequired
in interface IProfileAuthenticator
public IAuthToken authenticate(IAuthCredentials authCred) throws EMissingCredential
authenticate
in interface IAuthManager
authCred
- The authentication credentialsEMissingCredential
- if no auth token or no sessionpublic java.lang.String[] getRequiredCreds()
IAuthManager
getRequiredCreds
in interface IAuthManager
public java.lang.String[] getConfigParams()
IAuthManager
getConfigParams
in interface IAuthManager
public void shutdown()
shutdown
in interface IAuthManager
public IConfigStore getConfigStore()
getConfigStore
in interface IAuthManager
getConfigStore
in interface IProfileAuthenticator
public void init(IProfile profile, IConfigStore config)
IProfileAuthenticator
init
in interface IProfileAuthenticator
profile
- owner of this authenticatorconfig
- configuration storepublic java.lang.String getName(java.util.Locale locale)
getName
in interface IProfileAuthenticator
locale
- end user localepublic java.lang.String getText(java.util.Locale locale)
getText
in interface IProfileAuthenticator
locale
- end user localepublic java.util.Enumeration<java.lang.String> getValueNames()
getValueNames
in interface IProfileAuthenticator
public boolean isValueWriteable(java.lang.String name)
IProfileAuthenticator
isValueWriteable
in interface IProfileAuthenticator
name
- property namepublic IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
getValueDescriptor
in interface IProfileAuthenticator
locale
- user localename
- property namepublic void populate(IAuthToken token, IRequest request)
IProfileAuthenticator
populate
in interface IProfileAuthenticator
token
- authentication tokenrequest
- request