public abstract class AbstractOA4MPService extends Object
Created by Jeff Gaynor
on 11/26/13 at 11:27 AM
Modifier and Type | Field and Description |
---|---|
protected String |
BASE64_URI_CAPUT
Used in making a consistent base 64-based uri from a string.
|
static String |
SKIN_PARAMETER |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOA4MPService(ClientEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
getAssetParameters(Asset asset)
This creates the parameter map for the certificate request.
|
AssetProvider |
getAssetProvider() |
protected AssetStore |
getAssetStore() |
protected Map<String,String> |
getATParameters(Asset asset,
AuthorizationGrant ag,
Verifier v)
This creates the parameter map for the access token request.
|
protected AssetResponse |
getCert(Asset asset,
AuthorizationGrant ag,
Verifier v)
Does the actual work getting the cert.
|
AssetResponse |
getCert(String tempToken,
String verifier)
Retrieve the certificate chain from the server.
|
AssetResponse |
getCert(String tempToken,
String verifier,
Identifier identifier)
Performs the
getCert(String, String) call then updates the asset associated with
the given identifier. |
ClientEnvironment |
getEnvironment() |
protected KeyPair |
getNextKeyPair() |
protected Identifier |
makeb64Uri(String x) |
abstract void |
postGetCert(Asset asset,
AssetResponse assetResponse) |
abstract void |
postRequestCert(Asset asset,
OA4MPResponse oa4MPResponse) |
abstract void |
preGetCert(Asset asset,
Map parameters) |
abstract void |
preRequestCert(Asset asset,
Map parameters) |
OA4MPResponse |
requestCert()
This will make the request with whatever defaults are in effect for the client.
|
protected OA4MPResponse |
requestCert(Asset asset,
Map additionalParameters) |
OA4MPResponse |
requestCert(Identifier identifier)
A convenience method to do the
requestCert() call and create an asset with the given identifier. |
OA4MPResponse |
requestCert(Identifier identifier,
Map additionalParameters)
A convenience method that allows for a map of additional parameters.
|
OA4MPResponse |
requestCert(Map additionalParameters)
Request a certificate from the user portal.
|
void |
setAssetProvider(AssetProvider assetProvider) |
public static final String SKIN_PARAMETER
protected String BASE64_URI_CAPUT
protected AbstractOA4MPService(ClientEnvironment environment)
protected AssetStore getAssetStore()
public ClientEnvironment getEnvironment()
public abstract void postRequestCert(Asset asset, OA4MPResponse oa4MPResponse)
public abstract void postGetCert(Asset asset, AssetResponse assetResponse)
public OA4MPResponse requestCert()
requestCert(java.util.Map)
call.public OA4MPResponse requestCert(Identifier identifier)
requestCert()
call and create an asset with the given identifier. This
will throw an exception if there is no asset store configured.identifier
- public AssetProvider getAssetProvider()
public void setAssetProvider(AssetProvider assetProvider)
public OA4MPResponse requestCert(Identifier identifier, Map additionalParameters)
identifier
- additionalParameters
- public OA4MPResponse requestCert(Map additionalParameters)
protected Identifier makeb64Uri(String x)
protected KeyPair getNextKeyPair()
protected OA4MPResponse requestCert(Asset asset, Map additionalParameters)
public AssetResponse getCert(String tempToken, String verifier)
requestCert()
and
user authorization.tempToken
- verifier
- public AssetResponse getCert(String tempToken, String verifier, Identifier identifier)
getCert(String, String)
call then updates the asset associated with
the given identifier. This throws an exception is there is no asset or if the asset store
is not enabled.tempToken
- verifier
- identifier
- protected Map<String,String> getATParameters(Asset asset, AuthorizationGrant ag, Verifier v)
asset
- ag
- v
- protected Map<String,String> getAssetParameters(Asset asset)
asset
- protected AssetResponse getCert(Asset asset, AuthorizationGrant ag, Verifier v)
asset
- ag
- v
- Copyright © 2019. All Rights Reserved.