|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uiuc.ncsa.security.core.util.AbstractEnvironment
edu.uiuc.ncsa.myproxy.oa4mp.client.ClientEnvironment
public class ClientEnvironment
Environment under which a client instance runs. Generally this is called by the loader and populated from the configuration file.
Created by Jeff Gaynor
on May 16, 2011 at 3:27:56 PM
| Field Summary | |
|---|---|
protected URI |
accessTokenUri
|
protected URI |
authorizationUri
|
protected URI |
callback
|
static String |
CALLBACK_URI_KEY
|
static String |
CERT_LIFETIME_KEY
This is used in requests as the key for the cert lifetime parameter. |
static String |
CERT_REQUEST_KEY
This is used in requests as the key for the cert request parameter |
static String |
FORM_ENCODING
|
protected URI |
initializeUri
|
protected String |
privKeyString
|
protected URI |
resourceServerUri
|
protected String |
skin
|
static String |
TOKEN
|
| Fields inherited from class edu.uiuc.ncsa.security.core.util.AbstractEnvironment |
|---|
constants |
| Constructor Summary | |
|---|---|
ClientEnvironment(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger,
Map<String,String> constants,
URI accessTokenUri,
URI authorizationUri,
URI callback,
URI initializeUri,
URI resourceServerUri,
long certLifetime,
String clientId,
PrivateKey privateKey,
PublicKey publicKey,
String skin,
boolean enableAssetCleanup,
long maxAssetLifetime,
javax.inject.Provider<edu.uiuc.ncsa.security.delegation.storage.Client> clientProvider,
javax.inject.Provider<edu.uiuc.ncsa.security.delegation.token.TokenForge> tokenForgeProvider,
javax.inject.Provider<edu.uiuc.ncsa.security.delegation.client.DelegationService> delegationServiceProvider,
javax.inject.Provider<AssetStore> assetStoreProvider)
Main constructor called by the loader. |
|
ClientEnvironment(URI accessTokenUri,
URI authorizationUri,
URI callback,
long certLifetime,
String clientId,
edu.uiuc.ncsa.security.delegation.client.DelegationService delegationService,
URI initializeUri,
PrivateKey privateKey,
PublicKey publicKey,
URI resourceServerUri,
edu.uiuc.ncsa.security.delegation.token.TokenForge tokenForge,
AssetStore assetStore)
Used mostly for testing. |
|
| Method Summary | |
|---|---|
URI |
getAccessTokenUri()
The endpoint for this client for retrieving an access token. |
AssetStore |
getAssetStore()
Returns the configured AssetStore for this environment or null if
there is none. |
URI |
getAuthorizationUri()
The endpoint for this client allowing authorization of the user. |
URI |
getCallback()
The callback for this environment. NOTE Generally this is specified in the configuration file and is the same for every request. |
long |
getCertLifetime()
The certificate lifetime request. |
edu.uiuc.ncsa.security.delegation.storage.Client |
getClient()
A Client object representing the instance of this service. |
String |
getClientId()
The identifier for this client to the given server. |
edu.uiuc.ncsa.security.delegation.client.DelegationService |
getDelegationService()
The OA4MPService, fully configured and operational. |
URI |
getInitializeUri()
The endpoint for this client that starts delegation. |
long |
getMaxAssetLifetime()
|
PrivateKey |
getPrivateKey()
The private key for this client. |
protected String |
getPrivKeyString()
Internal call to convert the private key. |
PublicKey |
getPublicKey()
The generated public key for this client. |
URI |
getResourceServerUri()
The endpoint for this client for getting the resource (i.e., certificate chain). |
String |
getSkin()
Optional skinning option. |
edu.uiuc.ncsa.security.delegation.token.TokenForge |
getTokenForge()
Internal call to the forge (a type of factory) that processing tokens returned from the server. |
boolean |
hasAssetStore()
Returns true if a store has been configured for this environment and
false otherwise. |
boolean |
isEnableAssetCleanup()
|
void |
setCallback(URI callback)
|
void |
setCertLifetime(long newCertLifetime)
|
| Methods inherited from class edu.uiuc.ncsa.security.core.util.AbstractEnvironment |
|---|
debug, error, getConstants, getMyLogger, info, isDebugOn, setDebugOn, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CALLBACK_URI_KEY
public static final String TOKEN
public static final String FORM_ENCODING
protected URI accessTokenUri
protected URI authorizationUri
protected URI initializeUri
protected URI resourceServerUri
public static final String CERT_REQUEST_KEY
public static final String CERT_LIFETIME_KEY
protected URI callback
protected String privKeyString
protected String skin
| Constructor Detail |
|---|
public ClientEnvironment(URI accessTokenUri,
URI authorizationUri,
URI callback,
long certLifetime,
String clientId,
edu.uiuc.ncsa.security.delegation.client.DelegationService delegationService,
URI initializeUri,
PrivateKey privateKey,
PublicKey publicKey,
URI resourceServerUri,
edu.uiuc.ncsa.security.delegation.token.TokenForge tokenForge,
AssetStore assetStore)
accessTokenUri - authorizationUri - callback - certLifetime - clientId - delegationService - initializeUri - privateKey - publicKey - resourceServerUri - tokenForge - assetStore -
public ClientEnvironment(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger,
Map<String,String> constants,
URI accessTokenUri,
URI authorizationUri,
URI callback,
URI initializeUri,
URI resourceServerUri,
long certLifetime,
String clientId,
PrivateKey privateKey,
PublicKey publicKey,
String skin,
boolean enableAssetCleanup,
long maxAssetLifetime,
javax.inject.Provider<edu.uiuc.ncsa.security.delegation.storage.Client> clientProvider,
javax.inject.Provider<edu.uiuc.ncsa.security.delegation.token.TokenForge> tokenForgeProvider,
javax.inject.Provider<edu.uiuc.ncsa.security.delegation.client.DelegationService> delegationServiceProvider,
javax.inject.Provider<AssetStore> assetStoreProvider)
logger - constants - accessTokenUri - authorizationUri - callback - initializeUri - resourceServerUri - certLifetime - clientId - privateKey - publicKey - clientProvider - tokenForgeProvider - delegationServiceProvider - assetStoreProvider - | Method Detail |
|---|
public boolean hasAssetStore()
true if a store has been configured for this environment and
false otherwise. Check this before using the store.
public AssetStore getAssetStore()
AssetStore for this environment or null if
there is none.
hasAssetStore()public URI getAccessTokenUri()
public URI getAuthorizationUri()
public URI getInitializeUri()
public URI getResourceServerUri()
public edu.uiuc.ncsa.security.delegation.token.TokenForge getTokenForge()
public edu.uiuc.ncsa.security.delegation.client.DelegationService getDelegationService()
OA4MPService, fully configured and operational.
public URI getCallback()
setCallback(java.net.URI).
public void setCallback(URI callback)
public String getClientId()
public PrivateKey getPrivateKey()
getPublicKey()
public PublicKey getPublicKey()
protected String getPrivKeyString()
public edu.uiuc.ncsa.security.delegation.storage.Client getClient()
Client object representing the instance of this service.
public long getCertLifetime()
setCertLifetime(long)
public void setCertLifetime(long newCertLifetime)
public String getSkin()
public long getMaxAssetLifetime()
public boolean isEnableAssetCleanup()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||