Package io.jans.configapi.configuration
Class ConfigurationFactory
- java.lang.Object
-
- io.jans.configapi.configuration.ConfigurationFactory
-
@ApplicationScoped @Alternative @Priority(1) public class ConfigurationFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_CONFIGURATION_RELOAD_EVENT_TYPE
static String
CONFIGAPI_CONFIGURATION_ENTRY
static String
PERSISTENCE_CONFIGUARION_RELOAD_EVENT_TYPE
-
Constructor Summary
Constructors Constructor Description ConfigurationFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create()
void
destroy(Class<? extends io.jans.as.model.configuration.Configuration> clazz)
io.jans.configapi.model.configuration.ApiAppConfiguration
getApiAppConfiguration()
List<String>
getApiApprovedIssuer()
String
getApiClientId()
String
getApiClientPassword()
String
getApiProtectionType()
io.jans.as.model.configuration.AppConfiguration
getAppConfiguration()
static String
getAppPropertiesFile()
String
getAuthConfigurationDn()
io.jans.orm.util.properties.FileConfiguration
getBaseConfiguration()
String
getConfigurationDn(String key)
io.jans.configapi.model.configuration.CorsConfiguration
getCorsConfiguration()
io.jans.configapi.model.configuration.CorsConfigurationFilter
getCorsConfigurationFilters()
String
getCryptoConfigurationSalt()
Properties
getDecryptedConnectionProperties()
io.jans.as.model.error.ErrorResponseFactory
getErrorResponseFactory()
io.jans.as.model.config.WebKeysConfiguration
getJwks()
io.jans.orm.model.PersistenceConfiguration
getPersistenceConfiguration()
io.jans.as.model.config.StaticConfiguration
getStaticConf()
io.jans.util.security.StringEncrypter
getStringEncrypter()
void
init()
void
initTimer()
boolean
isConfigOauthEnabled()
boolean
reloadApiConfFromLdap()
boolean
reloadAuthConfFromLdap()
void
reloadConfigurationTimerEvent(io.jans.service.cdi.event.ConfigurationEvent configurationEvent)
void
setConfigOauthEnabled(boolean configOauthEnabled)
-
-
-
Field Detail
-
PERSISTENCE_CONFIGUARION_RELOAD_EVENT_TYPE
public static final String PERSISTENCE_CONFIGUARION_RELOAD_EVENT_TYPE
- See Also:
- Constant Field Values
-
BASE_CONFIGURATION_RELOAD_EVENT_TYPE
public static final String BASE_CONFIGURATION_RELOAD_EVENT_TYPE
- See Also:
- Constant Field Values
-
CONFIGAPI_CONFIGURATION_ENTRY
public static final String CONFIGAPI_CONFIGURATION_ENTRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAppConfiguration
@Produces @ApplicationScoped public io.jans.as.model.configuration.AppConfiguration getAppConfiguration()
-
getApiAppConfiguration
@Produces @ApplicationScoped public io.jans.configapi.model.configuration.ApiAppConfiguration getApiAppConfiguration()
-
getCorsConfigurationFilters
@Produces @ApplicationScoped public io.jans.configapi.model.configuration.CorsConfigurationFilter getCorsConfigurationFilters()
-
getCorsConfiguration
@Produces @ApplicationScoped public io.jans.configapi.model.configuration.CorsConfiguration getCorsConfiguration()
-
getPersistenceConfiguration
@Produces @ApplicationScoped public io.jans.orm.model.PersistenceConfiguration getPersistenceConfiguration()
-
getStaticConf
@Produces @ApplicationScoped public io.jans.as.model.config.StaticConfiguration getStaticConf()
-
getJwks
@Produces @ApplicationScoped public io.jans.as.model.config.WebKeysConfiguration getJwks()
-
getErrorResponseFactory
@Produces @ApplicationScoped public io.jans.as.model.error.ErrorResponseFactory getErrorResponseFactory()
-
getStringEncrypter
@Produces @ApplicationScoped public io.jans.util.security.StringEncrypter getStringEncrypter() throws io.jans.exception.OxIntializationException
- Throws:
io.jans.exception.OxIntializationException
-
getBaseConfiguration
public io.jans.orm.util.properties.FileConfiguration getBaseConfiguration()
-
getAppPropertiesFile
public static String getAppPropertiesFile()
-
getApiProtectionType
public String getApiProtectionType()
-
getApiClientId
public String getApiClientId()
-
getApiClientPassword
public String getApiClientPassword()
-
isConfigOauthEnabled
public boolean isConfigOauthEnabled()
-
setConfigOauthEnabled
public void setConfigOauthEnabled(boolean configOauthEnabled)
-
init
@PostConstruct public void init()
-
create
public void create()
-
getAuthConfigurationDn
public String getAuthConfigurationDn()
-
getCryptoConfigurationSalt
public String getCryptoConfigurationSalt()
-
getDecryptedConnectionProperties
public Properties getDecryptedConnectionProperties() throws io.jans.exception.OxIntializationException
- Throws:
io.jans.exception.OxIntializationException
-
reloadAuthConfFromLdap
public boolean reloadAuthConfFromLdap()
-
reloadApiConfFromLdap
public boolean reloadApiConfFromLdap()
-
destroy
public void destroy(Class<? extends io.jans.as.model.configuration.Configuration> clazz)
-
initTimer
public void initTimer()
-
reloadConfigurationTimerEvent
@Asynchronous public void reloadConfigurationTimerEvent(@Observes io.jans.service.cdi.event.ConfigurationEvent configurationEvent)
-
-