public class PropertyBasedAuthConfigurationProvider extends ConfigurationProviderImpl implements at.gv.egovernment.moa.id.commons.api.AuthConfiguration
certstoreDirectory, chainingModes, CONFIG_PROPERTY_NAME, configProp, defaultChainingMode, DIRECTORY_CERTSTORE_PARAMETER_PROPERTY, genericConfiguration, PROXY_CONFIG_PROPERTY_NAME, rootConfigFileDir, TRUST_MANAGER_REVOCATION_CHECKING, trustedCACertificates, trustmanagerrevoationchecking| Constructor and Description |
|---|
PropertyBasedAuthConfigurationProvider(String configFileName) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getActiveOnlineApplication(String id)
Returns the active
OnlineApplication with the given ID or null if either no matching online application is found or if the id
matches more than one entry. |
at.gv.egovernment.moa.id.commons.api.data.ProtocolAllowed |
getAllowedProtocols()
Returns the allowed protocols.
|
String |
getAlternativeSourceID()
Returns an alternative source ID.
|
String |
getBasicMOAIDConfiguration(String key) |
String |
getCertstoreDirectory()
Returns the path to the certificate-store directory or
null if there is no certificate-store directory defined. |
String |
getConfigurationWithKey(String key) |
Map<String,String> |
getConfigurationWithPrefix(String Prefix) |
Map<String,String> |
getConfigurationWithWildCard(String key) |
String |
getDefaultBKUURL(String type)
Returns the type's default BKUURL.
|
List<String> |
getDefaultBKUURLs()
Returns a list of default BKUURLs.
|
List<Integer> |
getDefaultRevisionsLogEventCodes() |
String |
getDocumentServiceUrl() |
ConnectionParameter |
getForeignIDConnectionParameter()
Returns the
ConnectionParameter for the ForeignID. |
Properties |
getGeneralOAuth20ProperiesConfig()
Returns the general oauth20 properties config.
|
Properties |
getGeneralPVP2ProperiesConfig()
Returns the general pvp2 properties config.
|
String |
getIdentityLinkResigningKey()
Returns the IdentityLinkResigningKey.
|
List<String> |
getIdentityLinkX509SubjectNames()
Returns a list of IdentityLinkX509SubjectNames.
|
List<String> |
getLegacyAllowedProtocols()
Returns a list of legacy allowed protocols.
|
String |
getMOAConfigurationEncryptionKey()
Returns the MOAConfigurationEncryptionKey NOTE: returns
null if no MOAConfigurationEncryptionKey is set. |
String |
getMOASessionEncryptionKey()
Returns the MOASessionEncryptionKey NOTE: returns
null if no MOASessionEncryptionKey is set. |
String |
getMoaSpAuthBlockTrustProfileID(boolean useTestTrustStore)
Returns a string with a url-reference to the VerifyAuthBlock trust profile id within the moa-sp part of the authentication component.
|
List<String> |
getMoaSpAuthBlockVerifyTransformsInfoIDs()
Returns a list of strings with references to all verify transform info IDs within the moa-sp part of the authentication component.
|
ConnectionParameter |
getMoaSpConnectionParameter()
Returns a ConnectionParameter bean containing all information of the authentication component moa-sp element.
|
String |
getMoaSpIdentityLinkTrustProfileID(boolean useTestTrustStore) |
String |
getMonitoringMessageSuccess()
Returns the MonitoringMessageSuccess.
|
String |
getMonitoringTestIdentityLinkURL()
Returns the MonitoringTestIdentityLinkURL.
|
OAAuthParameter |
getOnlineApplicationParameter(String oaURL)
Provides configuration information regarding the online application behind the given URL, relevant to the MOA-ID Auth component.
|
ConnectionParameter |
getOnlineMandatesConnectionParameter()
Returns the
ConnectionParameter for the OnlineMandates. |
List<String> |
getPublicURLPrefix() |
List<String> |
getSLRequestTemplates()
Returns a list of default SLRequestTemplates.
|
String |
getSLRequestTemplates(String type)
Returns the type's default SLRequestTemplate.
|
int |
getSSOCreatedTimeOut() |
String |
getSSOFriendlyName()
Returns the SSOFriendlyName.
|
String |
getSSOSpecialText()
Returns the SSOSpecialText.
|
String |
getSSOTagetIdentifier()
Returns the SSOTagetIdentifier.
|
int |
getSSOUpdatedTimeOut() |
at.gv.egovernment.moa.id.commons.api.IStorkConfig |
getStorkConfig()
Returns a STORK Configuration, NOTE: may return
null. |
List<String> |
getStorkFakeIdLCountries()
Gets the countries which will receive a fake IdL
|
String |
getStorkFakeIdLResigningKey()
Gets the resigning key (group) for the stork fake IdL.
|
List<String> |
getStorkNoSignatureCountries() |
int |
getTransactionTimeOut() |
List<String> |
getTransformsInfos()
Returns a non-empty list of transform infos.
|
String |
getTrustedCACertificates() |
boolean |
isAdvancedLoggingActive() |
boolean |
isCertifiacteQCActive() |
boolean |
isHTTPAuthAllowed()
Deprecated.
|
boolean |
isIdentityLinkResigning() |
boolean |
isMonitoringActive() |
boolean |
isPVP2AssertionEncryptionActive() |
boolean |
isPVPSchemaValidationActive() |
boolean |
isStorkFakeIdLActive()
Checks if is fakeIdL is activated.
|
boolean |
isTrustmanagerrevoationchecking()
Returns whether the trust-manager revocation checking is enabled or not.
|
boolean |
isVirtualIDPsEnabled() |
static <T extends Iterable<?>> |
nullGuard(T item)
|
void |
setConfiguration(at.gv.egovernment.moa.id.commons.config.persistence.MOAIDConfiguration configuration)
Set the
Configuration for this class. |
getDBConnectionConfiguration, getDefaultChainingMode, geteGovUtilsConfig, getRootConfigFileDir, initialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic PropertyBasedAuthConfigurationProvider(String configFileName) throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException@Autowired public void setConfiguration(at.gv.egovernment.moa.id.commons.config.persistence.MOAIDConfiguration configuration)
Configuration for this class.configuration - the configurationpublic static <T extends Iterable<?>> T nullGuard(T item)
item - the collectionCollection item if it is not null, or an empty List otherwise.public Map<String,String> getConfigurationWithPrefix(String Prefix)
getConfigurationWithPrefix in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic Map<String,String> getConfigurationWithWildCard(String key)
getConfigurationWithWildCard in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic String getBasicMOAIDConfiguration(String key)
getBasicMOAIDConfiguration in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic String getConfigurationWithKey(String key)
getConfigurationWithKey in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic Properties getGeneralPVP2ProperiesConfig()
null.getGeneralPVP2ProperiesConfig in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic Properties getGeneralOAuth20ProperiesConfig()
null.getGeneralOAuth20ProperiesConfig in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic at.gv.egovernment.moa.id.commons.api.data.ProtocolAllowed getAllowedProtocols()
null.getAllowedProtocols in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnull.public int getTransactionTimeOut()
getTransactionTimeOut in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic int getSSOCreatedTimeOut()
getSSOCreatedTimeOut in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic int getSSOUpdatedTimeOut()
getSSOUpdatedTimeOut in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic String getAlternativeSourceID() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null.getAlternativeSourceID in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnull.at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneralpublic List<String> getLegacyAllowedProtocols()
null.getLegacyAllowedProtocols in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic OAAuthParameter getOnlineApplicationParameter(String oaURL)
getOnlineApplicationParameter in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationoaURL - URL requested for an online applicationOAAuthParameter, or null if none is applicablepublic String getMoaSpAuthBlockTrustProfileID(boolean useTestTrustStore) throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
getMoaSpAuthBlockTrustProfileID in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneral or in case of missing MOASP.public List<String> getMoaSpAuthBlockVerifyTransformsInfoIDs() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
getMoaSpAuthBlockVerifyTransformsInfoIDs in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneral or in case of missing MOASP.public ConnectionParameter getMoaSpConnectionParameter() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
getMoaSpConnectionParameter in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneral.public ConnectionParameter getForeignIDConnectionParameter() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
ConnectionParameter for the ForeignID. NOTE: may return null.getForeignIDConnectionParameter in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneral.public ConnectionParameter getOnlineMandatesConnectionParameter() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
ConnectionParameter for the OnlineMandates. NOTE: may return null.getOnlineMandatesConnectionParameter in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneralpublic List<String> getTransformsInfos() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
empty or null.getTransformsInfos in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneral or in case of missing SecurityLayer.public List<String> getIdentityLinkX509SubjectNames() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null.getIdentityLinkX509SubjectNames in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneralpublic List<String> getSLRequestTemplates() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null.getSLRequestTemplates in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is never thrownpublic String getSLRequestTemplates(String type) throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null.getSLRequestTemplates in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationtype - the type of BKU.at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is never thrownpublic List<String> getDefaultBKUURLs() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null.getDefaultBKUURLs in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is never thrownpublic String getDefaultBKUURL(String type) throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null.getDefaultBKUURL in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationtype - the type of BKU.at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is never thrownpublic String getSSOTagetIdentifier() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null if no SSOTargetIdentifier is set.getSSOTagetIdentifier in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnullat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneralpublic String getSSOFriendlyName()
null, if no SSOFriendlyName is set, a default String is returned.getSSOFriendlyName in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic String getSSOSpecialText()
null, if no SSOSpecialText is set, an empty String is returned.getSSOSpecialText in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic String getMOASessionEncryptionKey()
null if no MOASessionEncryptionKey is set.getMOASessionEncryptionKey in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnullpublic String getMOAConfigurationEncryptionKey()
null if no MOAConfigurationEncryptionKey is set.getMOAConfigurationEncryptionKey in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnullpublic boolean isIdentityLinkResigning()
isIdentityLinkResigning in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationtrue if IdentityLinkResigning is set, false otherwise.public String getIdentityLinkResigningKey()
null if no IdentityLinkResigningKey is set.getIdentityLinkResigningKey in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnullpublic boolean isMonitoringActive()
isMonitoringActive in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationtrue if MonitoringActive is set, false otherwise.public String getMonitoringTestIdentityLinkURL()
null if no MonitoringTestIdentityLinkURL is set.getMonitoringTestIdentityLinkURL in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnullpublic String getMonitoringMessageSuccess()
null if no MonitoringMessageSuccess is set.getMonitoringMessageSuccess in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnullpublic boolean isAdvancedLoggingActive()
isAdvancedLoggingActive in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationtrue if AdvancedLoggingActive is set, false otherwise.public List<String> getPublicURLPrefix() throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
getPublicURLPrefix in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationExceptionpublic boolean isPVP2AssertionEncryptionActive()
isPVP2AssertionEncryptionActive in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationtrue if PVP2AssertionEncryptionActive is set, false otherwise.public boolean isCertifiacteQCActive()
isCertifiacteQCActive in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationtrue if CertifiacteQCActive is set, false otherwise.public at.gv.egovernment.moa.id.commons.api.IStorkConfig getStorkConfig()
throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
null.getStorkConfig in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationnullat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException - is thrown in case of missing AuthComponentGeneralpublic boolean isTrustmanagerrevoationchecking()
isTrustmanagerrevoationchecking in interface at.gv.egovernment.moa.id.commons.api.ConfigurationProvidertrue if enable, false if disabledpublic String getCertstoreDirectory()
null if there is no certificate-store directory defined.getCertstoreDirectory in interface at.gv.egovernment.moa.id.commons.api.ConfigurationProvidernullpublic String getTrustedCACertificates()
getTrustedCACertificates in interface at.gv.egovernment.moa.id.commons.api.ConfigurationProviderpublic Map<String,String> getActiveOnlineApplication(String id)
OnlineApplication with the given ID or null if either no matching online application is found or if the id
matches more than one entry.id - the id of the requested online applicationnullpublic String getDocumentServiceUrl()
getDocumentServiceUrl in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic boolean isPVPSchemaValidationActive()
isPVPSchemaValidationActive in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic boolean isStorkFakeIdLActive()
isStorkFakeIdLActive in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic List<String> getStorkFakeIdLCountries()
getStorkFakeIdLCountries in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic String getStorkFakeIdLResigningKey()
getStorkFakeIdLResigningKey in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic List<String> getStorkNoSignatureCountries()
getStorkNoSignatureCountries in interface at.gv.egovernment.moa.id.commons.api.AuthConfiguration@Deprecated public boolean isHTTPAuthAllowed()
isHTTPAuthAllowed in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic List<Integer> getDefaultRevisionsLogEventCodes()
getDefaultRevisionsLogEventCodes in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationpublic String getMoaSpIdentityLinkTrustProfileID(boolean useTestTrustStore) throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
getMoaSpIdentityLinkTrustProfileID in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationat.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationExceptionpublic boolean isVirtualIDPsEnabled()
isVirtualIDPsEnabled in interface at.gv.egovernment.moa.id.commons.api.AuthConfigurationCopyright © 2016. All rights reserved.