All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.uiuc.ncsa.oa4mp.oauth2.client.OA2ClientEnvironment Maven / Gradle / Ivy

package edu.uiuc.ncsa.oa4mp.oauth2.client;

import edu.uiuc.ncsa.myproxy.oa4mp.client.ClientEnvironment;
import edu.uiuc.ncsa.myproxy.oa4mp.client.storage.AssetProvider;
import edu.uiuc.ncsa.myproxy.oa4mp.client.storage.AssetStore;
import edu.uiuc.ncsa.security.core.util.BasicIdentifier;
import edu.uiuc.ncsa.security.core.util.MyLoggingFacade;
import edu.uiuc.ncsa.security.delegation.client.DelegationService;
import edu.uiuc.ncsa.security.delegation.storage.Client;
import edu.uiuc.ncsa.security.delegation.token.TokenForge;

import javax.inject.Provider;
import java.net.URI;
import java.util.Map;

/**
 * 

Created by Jeff Gaynor
* on 11/25/13 at 4:23 PM */ public class OA2ClientEnvironment extends ClientEnvironment { public OA2ClientEnvironment(URI accessTokenUri, URI authorizationUri, URI callback, long certLifetime, String clientId, DelegationService delegationService, URI resourceServerUri, TokenForge tokenForge, AssetStore assetStore, boolean showRedirectPage, String errorPagePath, String redirectPagePath, String successPagePath) { super(accessTokenUri, authorizationUri, callback, certLifetime, clientId, delegationService, null, null, null, resourceServerUri, tokenForge, assetStore, showRedirectPage, errorPagePath, redirectPagePath, successPagePath); } public OA2ClientEnvironment(MyLoggingFacade logger, Map constants, URI accessTokenUri, URI authorizationUri, URI callback, URI initializeURI, URI resourceServerUri, long certLifetime, String clientId, String skin, boolean enableAssetCleanup, long maxAssetLifetime, long keypairLifetime, AssetProvider assetProvider, Provider clientProvider, Provider tokenForgeProvider, Provider delegationServiceProvider, Provider assetStoreProvider, boolean showRedirectPage, String errorPagePath, String redirectPagePath, String successPagePath) { super(logger, constants, accessTokenUri, authorizationUri, callback, initializeURI, resourceServerUri, certLifetime, clientId, null, null, skin, enableAssetCleanup, maxAssetLifetime, keypairLifetime, assetProvider, clientProvider, tokenForgeProvider, delegationServiceProvider, assetStoreProvider, showRedirectPage, errorPagePath, redirectPagePath, successPagePath); } @Override public Client getClient() { if (client == null) { client = cp.get(); client.setIdentifier(new BasicIdentifier(getClientId())); } return client; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy