Package org.oa4mp.server.qdl.clc
Class QDLConfigLoader<T extends OA2ClientEnvironment>
- java.lang.Object
-
- org.oa4mp.client.loader.OA2ClientLoaderImpl<T>
-
- org.oa4mp.server.qdl.clc.QDLConfigLoader<T>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.util.ConfigurationLoader<T>,Serializable,ClientLoaderInterface<T>,QDLConfigTags
public class QDLConfigLoader<T extends OA2ClientEnvironment> extends OA2ClientLoaderImpl<T> implements QDLConfigTags
Created by Jeff Gaynor
on 12/19/23 at 3:35 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQDLConfigLoader.StupidAssetStoreProvider<T extends AssetStore>
-
Field Summary
-
Fields inherited from class org.oa4mp.client.loader.OA2ClientLoaderImpl
assetConverter, assetKeys, assetProvider, tokenForgeProvider
-
Fields inherited from interface org.oa4mp.server.qdl.clc.QDLConfigTags
ASSET_FILE_STORE_PATH, ASSET_STORE_TYPE, AUTHORIZE_URL, CALLBACK, CLIENT_MANAGEMENT_URL, DEBUG_LEVEL, DEVICE_AUTHORIZATION_URL, ENABLE_ASSET_CLEANUP, ENABLE_OIDC, ENDPOINTS, EXTENDED_ATTRIBUTES, EXTENDS, FILE_STORE_REMOVE_EMPTY, FILE_STORE_REMOVE_FAILED, ID, INTROSPECTION_URL, JWK_ID, JWKS, KEY_STORE_TAG, LOGGING_COUNT, LOGGING_DISABLE_LOG4J, LOGGING_ENABLE_APPEND, LOGGING_FILE, LOGGING_MAX_SIZE, LOGGING_NAME, LOGGING_TAG, MAX_ASSET_LIFETIME, REVOCATION_URL, SCOPES, SECRET, SERVICE_URL, SKIN, SSL, SSL_USE_JAVA_TRUST_STORE, TOKEN_URL, TRUST_STORE_CERT_DN, TRUST_STORE_PASSWORD, TRUST_STORE_PATH, TRUST_STORE_STRICT_HOSTNAME, TRUST_STORE_TAG, TRUST_STORE_TYPE, TRUST_STORE_USE_DEFAULT_TRUST_MANAGER, USER_INFO_URL, WELL_KNOWN_URL
-
-
Constructor Summary
Constructors Constructor Description QDLConfigLoader(org.qdl_lang.variables.QDLStem stem, String configName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TcreateInstance()URIgetAccessTokenURI()Map<String,List<String>>getAdditionalParameters()javax.inject.Provider<AssetStore>getAssetStoreProvider()URIgetAssetURI()URIgetAuthorizeURI()URIgetCallback()longgetCertLifetime()org.qdl_lang.variables.QDLStemgetConfig()StringgetConfigName()HashMap<String,String>getConstants()edu.uiuc.ncsa.security.core.util.MetaDebugUtilgetDebugger()Checks for and sets up the debugging for this loader.URIgetDeviceAuthorizationURI()protected StringgetEndpoint(String name)org.qdl_lang.variables.QDLStemgetFullConfig()The full configuration passed to this.StringgetId()URIgetIssuer()longgetKeypairLifetime()edu.uiuc.ncsa.security.util.jwk.JSONWebKeysgetKeys()StringgetKID()edu.uiuc.ncsa.security.core.util.LoggerProvidergetLoggerProvider()longgetMaxAssetLifetime()URIgetRFC7009Endpoint()URIgetRFC7662Endpoint()Collection<String>getScopes()StringgetSecret()StringgetServiceURI()StringgetSkin()edu.uiuc.ncsa.security.util.ssl.SSLConfigurationgetSSLConfiguration()URIgetUIURI()StringgetWellKnownURI()protected org.qdl_lang.variables.QDLSteminitialize(org.qdl_lang.variables.QDLStem s, String configName)booleanisEnableAssetCleanup()booleanisOIDCEnabled()Tload()static voidmain(String[] args)protected org.qdl_lang.variables.QDLStemNEWinitialize(org.qdl_lang.variables.QDLStem s, String configName)protected voidrenameSSLkeys(org.qdl_lang.variables.QDLStem ssl)This will rename the keys to conform to the serialization inSSLConfigurationUtil2.protected org.qdl_lang.variables.QDLStemresolveExtends(org.qdl_lang.variables.QDLStem all, org.qdl_lang.variables.QDLStem target)Resolve the extension property for a client.voidsetConfigName(String configName)voidsetFullConfig(org.qdl_lang.variables.QDLStem fullConfig)protected javax.inject.Provider<AssetStore>setupFSAssetStore(org.qdl_lang.variables.QDLStem conf)-
Methods inherited from class org.oa4mp.client.loader.OA2ClientLoaderImpl
checkURI, createServiceClient, createServiceURI, getAssetProvider, getDebugger, getDSP, getServiceProvider, getWellKnownClient, getWellKnownConfiguration, getWellKnownString, getWellKnownValue
-
-
-
-
Constructor Detail
-
QDLConfigLoader
public QDLConfigLoader(org.qdl_lang.variables.QDLStem stem, String configName)
-
-
Method Detail
-
getConfig
public org.qdl_lang.variables.QDLStem getConfig()
-
getFullConfig
public org.qdl_lang.variables.QDLStem getFullConfig()
The full configuration passed to this. ThegetConfig()is the resolved configuration.- Returns:
-
setFullConfig
public void setFullConfig(org.qdl_lang.variables.QDLStem fullConfig)
-
resolveExtends
protected org.qdl_lang.variables.QDLStem resolveExtends(org.qdl_lang.variables.QDLStem all, org.qdl_lang.variables.QDLStem target)Resolve the extension property for a client. If the client extends another one track that down and its extensions. Otherwise, do nothing.- Parameters:
all-target-- Returns:
-
initialize
protected org.qdl_lang.variables.QDLStem initialize(org.qdl_lang.variables.QDLStem s, String configName)
-
NEWinitialize
protected org.qdl_lang.variables.QDLStem NEWinitialize(org.qdl_lang.variables.QDLStem s, String configName)
-
getConfigName
public String getConfigName()
-
setConfigName
public void setConfigName(String configName)
-
getScopes
public Collection<String> getScopes()
- Specified by:
getScopesin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getKeys
public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getKeys()
- Specified by:
getKeysin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getAdditionalParameters
public Map<String,List<String>> getAdditionalParameters()
- Specified by:
getAdditionalParametersin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getAssetStoreProvider
public javax.inject.Provider<AssetStore> getAssetStoreProvider()
- Specified by:
getAssetStoreProviderin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
setupFSAssetStore
protected javax.inject.Provider<AssetStore> setupFSAssetStore(org.qdl_lang.variables.QDLStem conf)
-
getSSLConfiguration
public edu.uiuc.ncsa.security.util.ssl.SSLConfiguration getSSLConfiguration()
- Specified by:
getSSLConfigurationin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
renameSSLkeys
protected void renameSSLkeys(org.qdl_lang.variables.QDLStem ssl)
This will rename the keys to conform to the serialization inSSLConfigurationUtil2. It's probably the most reliable way to do this.- Parameters:
ssl-
-
getId
public String getId()
- Specified by:
getIdin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getKID
public String getKID()
- Specified by:
getKIDin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getSecret
public String getSecret()
- Specified by:
getSecretin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getServiceURI
public String getServiceURI()
- Specified by:
getServiceURIin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getSkin
public String getSkin()
- Specified by:
getSkinin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getWellKnownURI
public String getWellKnownURI()
- Specified by:
getWellKnownURIin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getAccessTokenURI
public URI getAccessTokenURI()
- Specified by:
getAccessTokenURIin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getAssetURI
public URI getAssetURI()
- Specified by:
getAssetURIin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getAuthorizeURI
public URI getAuthorizeURI()
- Specified by:
getAuthorizeURIin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getCallback
public URI getCallback()
- Specified by:
getCallbackin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getDeviceAuthorizationURI
public URI getDeviceAuthorizationURI()
- Specified by:
getDeviceAuthorizationURIin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getRFC7009Endpoint
public URI getRFC7009Endpoint()
- Specified by:
getRFC7009Endpointin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getUIURI
public URI getUIURI()
- Specified by:
getUIURIin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
isEnableAssetCleanup
public boolean isEnableAssetCleanup()
- Specified by:
isEnableAssetCleanupin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
isOIDCEnabled
public boolean isOIDCEnabled()
- Specified by:
isOIDCEnabledin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getCertLifetime
public long getCertLifetime()
- Specified by:
getCertLifetimein interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getKeypairLifetime
public long getKeypairLifetime()
- Specified by:
getKeypairLifetimein interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getIssuer
public URI getIssuer()
- Specified by:
getIssuerin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getMaxAssetLifetime
public long getMaxAssetLifetime()
- Specified by:
getMaxAssetLifetimein interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
getRFC7662Endpoint
public URI getRFC7662Endpoint()
- Specified by:
getRFC7662Endpointin interfaceClientLoaderInterface<T extends OA2ClientEnvironment>
-
load
public T load()
- Specified by:
loadin interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends OA2ClientEnvironment>
-
createInstance
public T createInstance()
- Specified by:
createInstancein interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends OA2ClientEnvironment>
-
getConstants
public HashMap<String,String> getConstants()
- Specified by:
getConstantsin interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends OA2ClientEnvironment>
-
getLoggerProvider
public edu.uiuc.ncsa.security.core.util.LoggerProvider getLoggerProvider()
- Specified by:
getLoggerProviderin classOA2ClientLoaderImpl<T extends OA2ClientEnvironment>
-
getDebugger
public edu.uiuc.ncsa.security.core.util.MetaDebugUtil getDebugger()
Description copied from class:OA2ClientLoaderImplChecks for and sets up the debugging for this loader. Once this is set up, you may have to tell any environments that use it that debugging is enabled. Note that this is not used in this module, but in OA4MP proper, but has to b here for visibility later.- Specified by:
getDebuggerin classOA2ClientLoaderImpl<T extends OA2ClientEnvironment>
-
-