Package org.oa4mp.server.qdl.clc
Class QDLConfigLoader<T extends org.oa4mp.client.loader.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,org.oa4mp.client.api.ClientLoaderInterface<T>,QDLConfigTags
public class QDLConfigLoader<T extends org.oa4mp.client.loader.OA2ClientEnvironment> extends org.oa4mp.client.loader.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 org.oa4mp.client.api.storage.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<org.oa4mp.client.api.storage.AssetStore>getAssetStoreProvider()URIgetAssetURI()URIgetAuthorizeURI()URIgetCallback()longgetCertLifetime()org.qdl_lang.variables.QDLStemgetConfig()StringgetConfigName()HashMap<String,String>getConstants()edu.uiuc.ncsa.security.core.util.MetaDebugUtilgetDebugger()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<org.oa4mp.client.api.storage.AssetStore>setupFSAssetStore(org.qdl_lang.variables.QDLStem conf)
-
-
-
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 interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getKeys
public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getKeys()
- Specified by:
getKeysin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getAdditionalParameters
public Map<String,List<String>> getAdditionalParameters()
- Specified by:
getAdditionalParametersin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getAssetStoreProvider
public javax.inject.Provider<org.oa4mp.client.api.storage.AssetStore> getAssetStoreProvider()
- Specified by:
getAssetStoreProviderin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
setupFSAssetStore
protected javax.inject.Provider<org.oa4mp.client.api.storage.AssetStore> setupFSAssetStore(org.qdl_lang.variables.QDLStem conf)
-
getSSLConfiguration
public edu.uiuc.ncsa.security.util.ssl.SSLConfiguration getSSLConfiguration()
- Specified by:
getSSLConfigurationin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.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 interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getKID
public String getKID()
- Specified by:
getKIDin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getSecret
public String getSecret()
- Specified by:
getSecretin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getServiceURI
public String getServiceURI()
- Specified by:
getServiceURIin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getSkin
public String getSkin()
- Specified by:
getSkinin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getWellKnownURI
public String getWellKnownURI()
- Specified by:
getWellKnownURIin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getAccessTokenURI
public URI getAccessTokenURI()
- Specified by:
getAccessTokenURIin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getAssetURI
public URI getAssetURI()
- Specified by:
getAssetURIin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getAuthorizeURI
public URI getAuthorizeURI()
- Specified by:
getAuthorizeURIin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getCallback
public URI getCallback()
- Specified by:
getCallbackin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getDeviceAuthorizationURI
public URI getDeviceAuthorizationURI()
- Specified by:
getDeviceAuthorizationURIin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getRFC7009Endpoint
public URI getRFC7009Endpoint()
- Specified by:
getRFC7009Endpointin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getUIURI
public URI getUIURI()
- Specified by:
getUIURIin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
isEnableAssetCleanup
public boolean isEnableAssetCleanup()
- Specified by:
isEnableAssetCleanupin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
isOIDCEnabled
public boolean isOIDCEnabled()
- Specified by:
isOIDCEnabledin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getCertLifetime
public long getCertLifetime()
- Specified by:
getCertLifetimein interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getKeypairLifetime
public long getKeypairLifetime()
- Specified by:
getKeypairLifetimein interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getIssuer
public URI getIssuer()
- Specified by:
getIssuerin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getMaxAssetLifetime
public long getMaxAssetLifetime()
- Specified by:
getMaxAssetLifetimein interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getRFC7662Endpoint
public URI getRFC7662Endpoint()
- Specified by:
getRFC7662Endpointin interfaceorg.oa4mp.client.api.ClientLoaderInterface<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
load
public T load()
- Specified by:
loadin interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
createInstance
public T createInstance()
- Specified by:
createInstancein interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getConstants
public HashMap<String,String> getConstants()
- Specified by:
getConstantsin interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getLoggerProvider
public edu.uiuc.ncsa.security.core.util.LoggerProvider getLoggerProvider()
- Specified by:
getLoggerProviderin classorg.oa4mp.client.loader.OA2ClientLoaderImpl<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
getDebugger
public edu.uiuc.ncsa.security.core.util.MetaDebugUtil getDebugger()
- Specified by:
getDebuggerin classorg.oa4mp.client.loader.OA2ClientLoaderImpl<T extends org.oa4mp.client.loader.OA2ClientEnvironment>
-
-