edu.uiuc.ncsa.myproxy.oa4mp.client
Class OA4MPService

java.lang.Object
  extended by edu.uiuc.ncsa.myproxy.oa4mp.client.OA4MPService

public class OA4MPService
extends Object

The OAuth for MyProxy service. Note that the ClientEnvironment is queried for its properties for each call, so that changes on a per request basis will be performed.

Created by Jeff Gaynor
on May 16, 2011 at 3:27:16 PM


Field Summary
static String SKIN_PARAMETER
           
 
Constructor Summary
OA4MPService(ClientEnvironment environment)
          Basic constructor for this service.
 
Method Summary
 AssetResponse getCert(String tempToken, String verifier)
          Retrieve the certificate chain from the server.
 AssetResponse getCert(String tempToken, String verifier, edu.uiuc.ncsa.security.core.Identifier identifier)
          Performs the getCert(String, String) call then updates the asset associated with the given identifier.
 ClientEnvironment getEnvironment()
           
 OA4MPResponse requestCert()
          This will make the request with whatever defaults are in effect for the client.
 OA4MPResponse requestCert(edu.uiuc.ncsa.security.core.Identifier identifier)
          A convenience method to do the requestCert() call and create an asset with the given identifier.
 OA4MPResponse requestCert(edu.uiuc.ncsa.security.core.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKIN_PARAMETER

public static final String SKIN_PARAMETER
See Also:
Constant Field Values
Constructor Detail

OA4MPService

public OA4MPService(ClientEnvironment environment)
Basic constructor for this service.

Parameters:
environment -
Method Detail

getEnvironment

public ClientEnvironment getEnvironment()

requestCert

public OA4MPResponse requestCert(Map additionalParameters)
Request a certificate from the user portal. This will also generate the private key and cert request. These are not stored by this service. The additionalParameters argument are passed as key/value pairs in the initial request and are not otherwise processed.

Returns:

requestCert

public OA4MPResponse requestCert()
This will make the request with whatever defaults are in effect for the client. You can override these by supplying them as key-value pairs in the requestCert(java.util.Map) call.

Returns:

requestCert

public OA4MPResponse requestCert(edu.uiuc.ncsa.security.core.Identifier identifier)
A convenience method to do the requestCert() call and create an asset with the given identifier. This will throw an exception if there is no asset store configured.

Parameters:
identifier -
Returns:

requestCert

public OA4MPResponse requestCert(edu.uiuc.ncsa.security.core.Identifier identifier,
                                 Map additionalParameters)
A convenience method that allows for a map of additional parameters.

Parameters:
identifier -
additionalParameters -
Returns:

getCert

public AssetResponse getCert(String tempToken,
                             String verifier)
Retrieve the certificate chain from the server. This is done after the requestCert() and user authorization.

Parameters:
tempToken -
verifier -
Returns:

getCert

public AssetResponse getCert(String tempToken,
                             String verifier,
                             edu.uiuc.ncsa.security.core.Identifier identifier)
Performs the 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.

Parameters:
tempToken -
verifier -
identifier -
Returns:


Copyright © 2013. All Rights Reserved.