Class OA2ConfigurationLoader<T extends ServiceEnvironmentImpl>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T>
-
- org.oa4mp.delegation.common.servlet.DBConfigLoader<T>
-
- org.oa4mp.server.api.servlet.storage.MyProxyConfigurationLoader<T>
-
- org.oa4mp.server.api.servlet.storage.AbstractConfigurationLoader<T>
-
- org.oa4mp.server.loader.oauth2.loader.OA2ConfigurationLoader<T>
-
- All Implemented Interfaces:
ConfigurationLoaderInterface
,edu.uiuc.ncsa.security.core.util.ConfigurationLoader<T>
,edu.uiuc.ncsa.security.core.Version
,Serializable
public class OA2ConfigurationLoader<T extends ServiceEnvironmentImpl> extends AbstractConfigurationLoader<T>
Created by Jeff Gaynor
on 9/23/13 at 1:50 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OA2ConfigurationLoader.OA2MultiDSClientStoreProvider
class
OA2ConfigurationLoader.OA4MP2TProvider
static class
OA2ConfigurationLoader.ST2Provider
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.AbstractConfigurationLoader
authorizationServletConfig, casp, csp, messagesProvider, mpp, mup, tsp
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.MyProxyConfigurationLoader
mfp
-
-
Constructor Summary
Constructors Constructor Description OA2ConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node)
OA2ConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node, edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CMConfigs
createDefaultCMConfig()
T
createInstance()
protected OA2SQLTransactionStoreProvider
createSQLTSP(org.apache.commons.configuration.tree.ConfigurationNode config, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> cpp, String type, MultiDSClientStoreProvider clientStoreProvider, javax.inject.Provider<? extends OA2ServiceTransaction> tp, javax.inject.Provider<TokenForge> tfp, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
protected SQLTXRStoreProvider
createSQLTXRecordP(org.apache.commons.configuration.tree.ConfigurationNode config, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> cpp, String type, TXRecordProvider<? extends TXRecord> tp, javax.inject.Provider<TokenForge> tfp, TXRecordConverter converter)
protected SQLVOStoreProvider
createSQLVOP(org.apache.commons.configuration.tree.ConfigurationNode config, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> cpp, String type, VOProvider<? extends VirtualOrganization> tp, javax.inject.Provider<TokenForge> tfp, VOConverter converter)
javax.inject.Provider<AGIssuer>
getAGIProvider()
protected long
getAGLifetime()
Collection<java.time.LocalTime>
getAlarms(String tag)
javax.inject.Provider<ATIssuer>
getATIProvider()
protected long
getATLifetime()
protected MultiDSClientApprovalStoreProvider
getCASP()
ClaimSource
getClaimSource()
Collection<java.time.LocalTime>
getCleanupAlarms()
long
getCleanupInterval()
javax.inject.Provider<ClientApprovalStore>
getClientApprovalStoreProvider()
edu.uiuc.ncsa.security.core.IdentifiableProvider<? extends Client>
getClientProvider()
int
getClientSecretLength()
javax.inject.Provider<ClientStore>
getClientStoreProvider()
CMConfigs
getCmConfigs()
HashMap<String,String>
getConstants()
protected MultiDSClientStoreProvider
getCSP()
protected long
getIDTokenLifetime()
long
getInterval(String tag, long defaultInterval)
protected String
getIssuer()
protected edu.uiuc.ncsa.security.util.jwk.JSONWebKeys
getJSONWebKeys()
protected LDAPConfiguration
getLdapConfiguration()
protected MultiDSAdminClientStoreProvider
getMacp()
long
getMaxAGLifetime()
long
getMaxATLifetime()
protected long
getMaxClientRefreshTokenLifetime()
long
getMaxIDTokenLifetime()
long
getMaxRTLifetime()
Collection<java.time.LocalTime>
getMonitorAlarms()
long
getMonitorInterval()
MultiJSONStoreProvider
getMultiJSONStoreProvider()
javax.inject.Provider<PAIssuer>
getPAIProvider()
String
getQdlConfigurationName()
protected OA2QDLEnvironment
getQDLEnvironment()
RFC8628ServletConfig
getRFC8628ServletConfig()
long
getRTGracePeriod()
Collection<String>
getScopes()
javax.inject.Provider<TokenForge>
getTokenForgeProvider()
javax.inject.Provider<TransactionStore>
getTransactionStoreProvider()
protected javax.inject.Provider<TransactionStore>
getTSP()
protected javax.inject.Provider<TransactionStore>
getTSP(edu.uiuc.ncsa.security.core.IdentifiableProvider tp, OA2TConverter<? extends OA2ServiceTransaction> tc)
protected javax.inject.Provider<TXStore>
getTXStoreProvider()
protected javax.inject.Provider<TXStore>
getTXStoreProvider(TXRecordProvider txRecordProvider, TXRecordConverter<? extends TXRecord> txRecordConverter)
String
getVersionString()
protected javax.inject.Provider<VOStore>
getVOStoreProvider()
protected javax.inject.Provider<VOStore>
getVOStoreProvider(VOProvider voProvider, VOConverter<? extends VirtualOrganization> voConverter)
Boolean
isCleanupLockingEnabled()
Boolean
isDemoModeEnabled()
Boolean
isMonitorEnabled()
String
isNotifyACEventEmailAddresses()
boolean
isOIDCEnabled()
boolean
isprintTSInDebug()
boolean
isQdlStrictACLS()
boolean
isRefreshTokenEnabled()
Boolean
isRFC7636Required()
protected Boolean
isRFC8628Enabled()
protected Boolean
isRFC8693Enabled()
boolean
isSafeGC()
boolean
isTwoFactorSupportEnabled()
protected Boolean
isUtilServerEnabled()
void
setMaxATLifetime(long maxATLifetime)
void
setRefreshTokenEnabled(boolean refreshTokenEnabled)
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.AbstractConfigurationLoader
getAuthorizationServletConfig, getMailUtilProvider, getMaxAllowedNewClientRequests, getMP, getMpp, getPingable, getServiceAddress, getUsernameTransformer, initialize, load, loadPolling
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.MyProxyConfigurationLoader
getMyProxyFacadeProvider
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.servlet.DBConfigLoader
getDerbyConnectionPoolProvider, getDerbyConnectionPoolProvider, getMariaDBConnectionPoolProvider, getMariaDBConnectionPoolProvider, getMySQLConnectionPoolProvider, getMySQLConnectionPoolProvider, getPgConnectionPoolProvider, getPgConnectionPoolProvider, isDefaultStoreDisabled
-
-
-
-
Field Detail
-
STRICT_ACLS
public static final String STRICT_ACLS
- See Also:
- Constant Field Values
-
SAFE_GARBAGE_COLLECTION
public static final String SAFE_GARBAGE_COLLECTION
- See Also:
- Constant Field Values
-
PRINT_TS_IN_DEBUG
public static final String PRINT_TS_IN_DEBUG
- See Also:
- Constant Field Values
-
NOTIFY_ADMIN_CLIENT_ADDRESSES
public static final String NOTIFY_ADMIN_CLIENT_ADDRESSES
- See Also:
- Constant Field Values
-
CLEANUP_INTERVAL_TAG
public static final String CLEANUP_INTERVAL_TAG
- See Also:
- Constant Field Values
-
CLEANUP_ALARMS_TAG
public static final String CLEANUP_ALARMS_TAG
- See Also:
- Constant Field Values
-
CLEANUP_LOCKING_ENABLED
public static final String CLEANUP_LOCKING_ENABLED
- See Also:
- Constant Field Values
-
MONITOR_ENABLED
public static final String MONITOR_ENABLED
- See Also:
- Constant Field Values
-
MONITOR_INTERVAL
public static final String MONITOR_INTERVAL
- See Also:
- Constant Field Values
-
MONITOR_ALARMS
public static final String MONITOR_ALARMS
- See Also:
- Constant Field Values
-
RFC7636_REQUIRED_TAG
public static final String RFC7636_REQUIRED_TAG
- See Also:
- Constant Field Values
-
DEMO_MODE_TAG
public static final String DEMO_MODE_TAG
- See Also:
- Constant Field Values
-
QDL_CONFIG_NAME_ATTR
public static final String QDL_CONFIG_NAME_ATTR
- See Also:
- Constant Field Values
-
QDL_DEFAULT_CONFIGURATION_NAME
public static final String QDL_DEFAULT_CONFIGURATION_NAME
- See Also:
- Constant Field Values
-
REFRESH_TOKEN_LIFETIME_DEFAULT
public static long REFRESH_TOKEN_LIFETIME_DEFAULT
Default is 15 days. Internally the refresh lifetime (as all date-ish things) are in milliseconds though the configuration file is assumed to be in seconds.
-
MAX_REFRESH_TOKEN_LIFETIME_DEFAULT
public static long MAX_REFRESH_TOKEN_LIFETIME_DEFAULT
-
ACCESS_TOKEN_LIFETIME_DEFAULT
public static long ACCESS_TOKEN_LIFETIME_DEFAULT
-
MAX_ACCESS_TOKEN_LIFETIME_DEFAULT
public static long MAX_ACCESS_TOKEN_LIFETIME_DEFAULT
-
ID_TOKEN_LIFETIME_DEFAULT
public static long ID_TOKEN_LIFETIME_DEFAULT
-
MAX_ID_TOKEN_LIFETIME_DEFAULT
public static long MAX_ID_TOKEN_LIFETIME_DEFAULT
-
AUTHORIZATION_GRANT_LIFETIME_DEFAULT
public static long AUTHORIZATION_GRANT_LIFETIME_DEFAULT
-
MAX_AUTHORIZATION_GRANT_LIFETIME_DEFAULT
public static long MAX_AUTHORIZATION_GRANT_LIFETIME_DEFAULT
-
REFRESH_TOKEN_GRACE_PERIOD_TAG
public static String REFRESH_TOKEN_GRACE_PERIOD_TAG
-
REFRESH_TOKEN_GRACE_PERIOD_DEFAULT
public static long REFRESH_TOKEN_GRACE_PERIOD_DEFAULT
-
REFRESH_TOKEN_GRACE_PERIOD_DISABLED
public static long REFRESH_TOKEN_GRACE_PERIOD_DISABLED
-
REFRESH_TOKEN_GRACE_PERIOD_USE_SERVER_DEFAULT
public static long REFRESH_TOKEN_GRACE_PERIOD_USE_SERVER_DEFAULT
-
REFRESH_TOKEN_GRACE_PERIOD_NOT_CONFIGURED
public static long REFRESH_TOKEN_GRACE_PERIOD_NOT_CONFIGURED
-
CLIENT_SECRET_LENGTH_DEFAULT
public static int CLIENT_SECRET_LENGTH_DEFAULT
-
CLEANUP_INTERVAL_DEFAULT
public static long CLEANUP_INTERVAL_DEFAULT
-
CLEANUP_LOCKING_ENABLED_DEFAULT
public static boolean CLEANUP_LOCKING_ENABLED_DEFAULT
-
MONITOR_ENABLED_DEFAULT
public static boolean MONITOR_ENABLED_DEFAULT
-
MONITOR_INTERVAL_DEFAULT
public static long MONITOR_INTERVAL_DEFAULT
-
rfc7636Required
protected Boolean rfc7636Required
-
printTSInDebug
protected Boolean printTSInDebug
-
multiJSONStoreProvider
protected MultiJSONStoreProvider multiJSONStoreProvider
-
macp
protected MultiDSAdminClientStoreProvider macp
-
claimSource
protected ClaimSource claimSource
-
-
Constructor Detail
-
OA2ConfigurationLoader
public OA2ConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node)
-
OA2ConfigurationLoader
public OA2ConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node, edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
-
Method Detail
-
createInstance
public T createInstance()
- Specified by:
createInstance
in interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends ServiceEnvironmentImpl>
- Overrides:
createInstance
in classAbstractConfigurationLoader<T extends ServiceEnvironmentImpl>
-
getAlarms
public Collection<java.time.LocalTime> getAlarms(String tag)
-
getMonitorAlarms
public Collection<java.time.LocalTime> getMonitorAlarms()
-
getCleanupAlarms
public Collection<java.time.LocalTime> getCleanupAlarms()
-
getRFC8628ServletConfig
public RFC8628ServletConfig getRFC8628ServletConfig()
-
getQDLEnvironment
protected OA2QDLEnvironment getQDLEnvironment()
-
isNotifyACEventEmailAddresses
public String isNotifyACEventEmailAddresses()
-
isRFC7636Required
public Boolean isRFC7636Required()
-
isprintTSInDebug
public boolean isprintTSInDebug()
-
isDemoModeEnabled
public Boolean isDemoModeEnabled()
-
getQdlConfigurationName
public String getQdlConfigurationName()
-
getCleanupInterval
public long getCleanupInterval()
-
getMonitorInterval
public long getMonitorInterval()
-
getInterval
public long getInterval(String tag, long defaultInterval)
-
isCleanupLockingEnabled
public Boolean isCleanupLockingEnabled()
-
isMonitorEnabled
public Boolean isMonitorEnabled()
-
isSafeGC
public boolean isSafeGC()
-
isQdlStrictACLS
public boolean isQdlStrictACLS()
-
isUtilServerEnabled
protected Boolean isUtilServerEnabled()
-
isRFC8693Enabled
protected Boolean isRFC8693Enabled()
-
isRFC8628Enabled
protected Boolean isRFC8628Enabled()
-
createDefaultCMConfig
protected CMConfigs createDefaultCMConfig()
-
getCmConfigs
public CMConfigs getCmConfigs()
-
getMultiJSONStoreProvider
public MultiJSONStoreProvider getMultiJSONStoreProvider()
-
getMacp
protected MultiDSAdminClientStoreProvider getMacp()
-
getJSONWebKeys
protected edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getJSONWebKeys()
-
getAGIProvider
public javax.inject.Provider<AGIssuer> getAGIProvider()
-
getClientApprovalStoreProvider
public javax.inject.Provider<ClientApprovalStore> getClientApprovalStoreProvider()
-
getClientStoreProvider
public javax.inject.Provider<ClientStore> getClientStoreProvider()
-
getCASP
protected MultiDSClientApprovalStoreProvider getCASP()
- Overrides:
getCASP
in classAbstractConfigurationLoader<T extends ServiceEnvironmentImpl>
-
getRTGracePeriod
public long getRTGracePeriod()
-
getAGLifetime
protected long getAGLifetime()
-
getIDTokenLifetime
protected long getIDTokenLifetime()
-
getMaxIDTokenLifetime
public long getMaxIDTokenLifetime()
-
getATLifetime
protected long getATLifetime()
-
getMaxAGLifetime
public long getMaxAGLifetime()
-
getMaxATLifetime
public long getMaxATLifetime()
-
setMaxATLifetime
public void setMaxATLifetime(long maxATLifetime)
-
getMaxRTLifetime
public long getMaxRTLifetime()
-
getIssuer
protected String getIssuer()
-
getMaxClientRefreshTokenLifetime
protected long getMaxClientRefreshTokenLifetime()
-
isOIDCEnabled
public boolean isOIDCEnabled()
-
isRefreshTokenEnabled
public boolean isRefreshTokenEnabled()
-
isTwoFactorSupportEnabled
public boolean isTwoFactorSupportEnabled()
-
setRefreshTokenEnabled
public void setRefreshTokenEnabled(boolean refreshTokenEnabled)
-
getClaimSource
public ClaimSource getClaimSource() throws ClassNotFoundException, IllegalAccessException, InstantiationException
-
getLdapConfiguration
protected LDAPConfiguration getLdapConfiguration()
-
getScopes
public Collection<String> getScopes() throws ClassNotFoundException, IllegalAccessException, InstantiationException
-
getClientSecretLength
public int getClientSecretLength()
-
getCSP
protected MultiDSClientStoreProvider getCSP()
- Specified by:
getCSP
in classAbstractConfigurationLoader<T extends ServiceEnvironmentImpl>
-
createSQLTSP
protected OA2SQLTransactionStoreProvider createSQLTSP(org.apache.commons.configuration.tree.ConfigurationNode config, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> cpp, String type, MultiDSClientStoreProvider clientStoreProvider, javax.inject.Provider<? extends OA2ServiceTransaction> tp, javax.inject.Provider<TokenForge> tfp, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
createSQLTXRecordP
protected SQLTXRStoreProvider createSQLTXRecordP(org.apache.commons.configuration.tree.ConfigurationNode config, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> cpp, String type, TXRecordProvider<? extends TXRecord> tp, javax.inject.Provider<TokenForge> tfp, TXRecordConverter converter)
-
createSQLVOP
protected SQLVOStoreProvider createSQLVOP(org.apache.commons.configuration.tree.ConfigurationNode config, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> cpp, String type, VOProvider<? extends VirtualOrganization> tp, javax.inject.Provider<TokenForge> tfp, VOConverter converter)
-
getVOStoreProvider
protected javax.inject.Provider<VOStore> getVOStoreProvider()
-
getVOStoreProvider
protected javax.inject.Provider<VOStore> getVOStoreProvider(VOProvider voProvider, VOConverter<? extends VirtualOrganization> voConverter)
-
getTXStoreProvider
protected javax.inject.Provider<TXStore> getTXStoreProvider()
-
getTXStoreProvider
protected javax.inject.Provider<TXStore> getTXStoreProvider(TXRecordProvider txRecordProvider, TXRecordConverter<? extends TXRecord> txRecordConverter)
-
getTSP
protected javax.inject.Provider<TransactionStore> getTSP(edu.uiuc.ncsa.security.core.IdentifiableProvider tp, OA2TConverter<? extends OA2ServiceTransaction> tc)
-
getTSP
protected javax.inject.Provider<TransactionStore> getTSP()
- Overrides:
getTSP
in classAbstractConfigurationLoader<T extends ServiceEnvironmentImpl>
-
getTransactionStoreProvider
public javax.inject.Provider<TransactionStore> getTransactionStoreProvider()
-
getTokenForgeProvider
public javax.inject.Provider<TokenForge> getTokenForgeProvider()
-
getATIProvider
public javax.inject.Provider<ATIssuer> getATIProvider()
-
getPAIProvider
public javax.inject.Provider<PAIssuer> getPAIProvider()
-
getClientProvider
public edu.uiuc.ncsa.security.core.IdentifiableProvider<? extends Client> getClientProvider()
-
getVersionString
public String getVersionString()
- Specified by:
getVersionString
in classedu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T extends ServiceEnvironmentImpl>
-
-