public class AuthConfigurationProvider extends ConfigurationProvider
Configuration data is read from an XML file, whose location is given by
the moa.id.configuration system property.
This class implements the Singleton pattern. The reload()
method can be used to update the configuration data. Therefore, it is not
guaranteed that consecutive calls to getInstance() will return
the same AuthConfigurationProvider all the time. During the
processing of a web service request, the current
TransactionContext should be used to obtain the
AuthConfigurationProvider local to that request.
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_DATA_TIMEOUT_PROPERTY
The name of the generic configuration property giving the authentication data time out.
|
static String |
AUTH_SESSION_TIMEOUT_PROPERTY
The name of the generic configuration property giving the authentication session time out.
|
static String |
BKU_SELECTION_TYPE_HTMLCOMPLETE
BKUSelectionType HTMLComplete, according to schema type
BKUSelectionType |
static String |
BKU_SELECTION_TYPE_HTMLSELECT
BKUSelectionType HTMLSelect, according to schema type
BKUSelectionType |
static String |
FRONTEND_SERVLETS_ENABLE_HTTP_CONNECTION_PROPERTY
The name of the generic configuration property allowing https connection to
the user frontend servlets ("StartAuthentication" and "SelectBKU" servlets)
|
static String |
INDIVIDUAL_DATA_URL_PREFIX
The name of the generic configuration property allowing to set a individual
DATA URL used to communicate with the BKU (SecurityLayer)
|
chainingModes, CONFIG_PROPERTY_NAME, defaultChainingMode, DIRECTORY_CERTSTORE_PARAMETER_PROPERTY, genericConfiguration, rootConfigFileDir, TRUST_MANAGER_REVOCATION_CHECKING, trustedCACertificates| Constructor and Description |
|---|
AuthConfigurationProvider(String fileName)
Constructor for AuthConfigurationProvider.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionParameter |
getBKUConnectionParameter()
Returns the bKUConnectionParameter.
|
String |
getBKUSelectionType()
Returns the bKUSelectionType.
|
VerifyInfoboxParameters |
getDefaultVerifyInfoboxParameters()
Returns the defaultVerifyInfoboxParameters.
|
ConnectionParameter |
getForeignIDConnectionParameter()
Return a ConnectionParameter bean containing all information
of the authentication component foreigid element
|
List |
getIdentityLinkX509SubjectNames()
Returns the identityLinkX509SubjectNames.
|
static AuthConfigurationProvider |
getInstance()
Return the single instance of configuration data.
|
String |
getMoaSpAuthBlockTrustProfileID()
Return a string with a url-reference to the VerifyAuthBlock trust
profile id within the moa-sp part of the authentication component
|
String[] |
getMoaSpAuthBlockVerifyTransformsInfoIDs()
Return a string array with references to all verify transform info
IDs within the moa-sp part of the authentication component
|
ConnectionParameter |
getMoaSpConnectionParameter()
Return a ConnectionParameter bean containing all information
of the authentication component moa-sp element
|
String |
getMoaSpIdentityLinkTrustProfileID()
Return a string with a url-reference to the VerifyIdentityLink trust
profile id within the moa-sp part of the authentication component
|
OAAuthParameter |
getOnlineApplicationParameter(String oaURL)
Provides configuration information regarding the online application behind
the given URL, relevant to the MOA-ID Auth component.
|
OAAuthParameter[] |
getOnlineApplicationParameters()
Build an array of the OnlineApplication Parameters containing information
about the authentication component
|
ConnectionParameter |
getOnlineMandatesConnectionParameter()
Return a ConnectionParameter bean containing all information
of the authentication component OnlineMandates element
|
String[] |
getTransformsInfoFileNames()
Return a string array with all filenames leading
to the Transforms Information for the Security Layer
|
String[] |
getTransformsInfos()
Returns the transformsInfos.
|
List |
getTrustedBKUs()
Returns the trustBKUs.
|
boolean |
isBKUSelectable()
Returns the bKUSelectable.
|
static AuthConfigurationProvider |
reload()
Reload the configuration data and set it if successful.
|
getChainingMode, getGenericConfiguration, getGenericConfigurationParameter, getRootConfigFileDir, getTrustedCACertificatespublic static final String AUTH_SESSION_TIMEOUT_PROPERTY
public static final String AUTH_DATA_TIMEOUT_PROPERTY
public static final String BKU_SELECTION_TYPE_HTMLCOMPLETE
BKUSelectionTypepublic static final String BKU_SELECTION_TYPE_HTMLSELECT
BKUSelectionTypepublic static final String FRONTEND_SERVLETS_ENABLE_HTTP_CONNECTION_PROPERTY
public static final String INDIVIDUAL_DATA_URL_PREFIX
public AuthConfigurationProvider(String fileName) throws ConfigurationException
fileName - ConfigurationExceptionpublic static AuthConfigurationProvider getInstance() throws ConfigurationException
ConfigurationExceptionpublic static AuthConfigurationProvider reload() throws ConfigurationException
ConfigurationException - Failure to load the configuration data.public String[] getTransformsInfoFileNames()
public OAAuthParameter[] getOnlineApplicationParameters()
public OAAuthParameter getOnlineApplicationParameter(String oaURL)
oaURL - URL requested for an online applicationOAAuthParameter, or null
if none is applicablepublic String getMoaSpAuthBlockTrustProfileID()
public String[] getMoaSpAuthBlockVerifyTransformsInfoIDs()
public ConnectionParameter getMoaSpConnectionParameter()
public ConnectionParameter getForeignIDConnectionParameter()
public ConnectionParameter getOnlineMandatesConnectionParameter()
public String getMoaSpIdentityLinkTrustProfileID()
public String[] getTransformsInfos()
public List getIdentityLinkX509SubjectNames()
public List getTrustedBKUs()
public ConnectionParameter getBKUConnectionParameter()
public boolean isBKUSelectable()
public String getBKUSelectionType()
public VerifyInfoboxParameters getDefaultVerifyInfoboxParameters()
Copyright © 2016. All Rights Reserved.