Class ApplicationSecurityConfiguration
- java.lang.Object
-
- africa.absa.inception.application.ApplicationSecurityConfiguration
-
@Configuration @ConditionalOnProperty("inception.application.security.trustStore.path") public class ApplicationSecurityConfiguration extends ObjectThe ApplicationSecurityConfiguration class provides access to the application security configuration and initialises the application key store and trust store.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description ApplicationSecurityConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasKeyStoreConfiguration()Returns whether the key store configuration has been specified.booleanhasTrustStoreConfiguration()Returns whether the trust store configuration has been specified.KeyStorekeyStore()Returns the application key store.StringkeyStorePassword()Returns the application key store password.KeyStoretrustStore()Returns the application trust store.
-
-
-
Method Detail
-
hasKeyStoreConfiguration
public boolean hasKeyStoreConfiguration()
Returns whether the key store configuration has been specified.- Returns:
- true if the key store configuration has been specified or false otherwise
-
hasTrustStoreConfiguration
public boolean hasTrustStoreConfiguration()
Returns whether the trust store configuration has been specified.- Returns:
- true if the trust store configuration has been specified or false otherwise
-
keyStore
@Bean(name="applicationKeyStore") public KeyStore keyStore()
Returns the application key store.- Returns:
- the application key store
-
keyStorePassword
@Bean(name="applicationKeyStorePassword") public String keyStorePassword()
Returns the application key store password.- Returns:
- the application key store password
-
trustStore
@Bean(name="applicationTrustStore") public KeyStore trustStore()
Returns the application trust store.- Returns:
- the application trust store
-
-