Class OA2ClientLoader<T extends ClientEnvironment>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T>
-
- org.oa4mp.delegation.common.servlet.DBConfigLoader<T>
-
- org.oa4mp.client.api.loader.AbstractClientLoader<T>
-
- org.oa4mp.client.loader.OA2ClientLoader<T>
-
- All Implemented Interfaces:
ClientLoaderInterface
,edu.uiuc.ncsa.security.core.util.ConfigurationLoader<T>
,edu.uiuc.ncsa.security.core.Version
,Serializable
public class OA2ClientLoader<T extends ClientEnvironment> extends AbstractClientLoader<T>
Created by Jeff Gaynor
on 6/4/13 at 4:34 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>
scopes
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.client.loader.AbstractClientLoader
ACCESS_TOKEN_ENDPOINT, ASSET_ENDPOINT, assetStoreProvider, AUTHORIZE_ENDPOINT, defaultCertLifetime, DEVICE_AUTHORIZATION_ENDPOINT, dsp, INITIATE_ENDPOINT, INTROSPECTION_ENDPOINT, REVOCATION_ENDPOINT, USER_INFO_ENDPOINT
-
-
Constructor Summary
Constructors Constructor Description OA2ClientLoader(org.apache.commons.configuration.tree.ConfigurationNode node)
-
Method Summary
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.client.loader.AbstractClientLoader
checkCertLifetime, checkProtocol, checkURI, createServiceClient, createServiceURI, getAccessTokenURI, getAssetURI, getAuthorizeURI, getBaseURI, getCallback, getCfgValue, getId, getInitiateURI, getKeypairLifetime, getMaxAssetLifetime, getSkin, getSSLConfiguration, isEnableAssetCleanup, load
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.servlet.DBConfigLoader
getDerbyConnectionPoolProvider, getDerbyConnectionPoolProvider, getMariaDBConnectionPoolProvider, getMariaDBConnectionPoolProvider, getMySQLConnectionPoolProvider, getMySQLConnectionPoolProvider, getPgConnectionPoolProvider, getPgConnectionPoolProvider, isDefaultStoreDisabled
-
-
-
-
Field Detail
-
scopes
protected Collection<String> scopes
-
-
Method Detail
-
getVersionString
public String getVersionString()
- Specified by:
getVersionString
in classedu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T extends ClientEnvironment>
-
getServiceProvider
public OA4MPServiceProvider getServiceProvider()
Description copied from interface:ClientLoaderInterface
The provider that creates an instance of theOA4MPService
- Returns:
-
getScopes
public Collection<String> getScopes()
-
createInstance
public T createInstance(javax.inject.Provider<TokenForge> tokenForgeProvider, javax.inject.Provider<Client> clientProvider, HashMap<String,String> constants)
Factory method. Override this to create the actual instance as needed.- Parameters:
tokenForgeProvider
-clientProvider
-constants
-- Returns:
-
getAssetProvider
public AssetProvider getAssetProvider()
- Specified by:
getAssetProvider
in classAbstractClientLoader<T extends ClientEnvironment>
-
getWellKnownURI
public String getWellKnownURI()
-
isShowIDToken
public boolean isShowIDToken()
An option for the (demo) client that specifies that the user should be shown the ID token at some point. Default isfalse
- Returns:
-
isOIDCEnabled
public boolean isOIDCEnabled()
-
getAssetStoreProvider
protected javax.inject.Provider<AssetStore> getAssetStoreProvider()
- Overrides:
getAssetStoreProvider
in classAbstractClientLoader<T extends ClientEnvironment>
-
getErrorPagePath
protected String getErrorPagePath()
-
getSecret
protected String getSecret()
-
getSuccessPagePath
protected String getSuccessPagePath()
-
getRedirectPagePath
protected String getRedirectPagePath()
-
isShowRedirectPage
protected boolean isShowRedirectPage()
-
createInstance
public T createInstance()
-
isUseBasicAuth
public Boolean isUseBasicAuth()
Deprecated.For calls the client makes to the service, use HTTP Basic Authorization rather than passing in the credentials as parameters. Both should be supported, but some other services might only allow for this. This feature is (probably) unused and should be removed at some point.- Returns:
-
setUseBasicAuth
public void setUseBasicAuth(Boolean useBasicAuth)
-
getDSP
protected javax.inject.Provider<DelegationService> getDSP()
- Specified by:
getDSP
in classAbstractClientLoader<T extends ClientEnvironment>
-
getUIURI
protected URI getUIURI()
-
getDeviceAuthorizationURI
protected URI getDeviceAuthorizationURI()
-
getRFC7009Endpoint
protected URI getRFC7009Endpoint()
-
getRFC7662Endpoint
protected URI getRFC7662Endpoint()
-
getAuthzURI
protected URI getAuthzURI()
-
-