com.paypal.core.nvp
Class CertificateHttpHeaderAuthStrategy

java.lang.Object
  extended by com.paypal.core.AbstractCertificateHttpHeaderAuthStrategy
      extended by com.paypal.core.nvp.CertificateHttpHeaderAuthStrategy
All Implemented Interfaces:
AuthenticationStrategy<Map<String,String>,CertificateCredential>

public class CertificateHttpHeaderAuthStrategy
extends AbstractCertificateHttpHeaderAuthStrategy

CertificateHttpHeaderAuthStrategy is an implementation of AuthenticationStrategy which acts on CertificateCredential and retrieves them as HTTP headers


Field Summary
 
Fields inherited from class com.paypal.core.AbstractCertificateHttpHeaderAuthStrategy
endPointUrl
 
Constructor Summary
CertificateHttpHeaderAuthStrategy(String endPointUrl)
          CertificateHttpHeaderAuthStrategy
 
Method Summary
protected  Map<String,String> processTokenAuthorization(CertificateCredential credential, TokenAuthorization tokenAuth)
          Processing for TokenAuthorization under CertificateCredential
 
Methods inherited from class com.paypal.core.AbstractCertificateHttpHeaderAuthStrategy
generateHeaderStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificateHttpHeaderAuthStrategy

public CertificateHttpHeaderAuthStrategy(String endPointUrl)
CertificateHttpHeaderAuthStrategy

Parameters:
endPointUrl -
Method Detail

processTokenAuthorization

protected Map<String,String> processTokenAuthorization(CertificateCredential credential,
                                                       TokenAuthorization tokenAuth)
                                                throws OAuthException
Processing for TokenAuthorization under CertificateCredential

Specified by:
processTokenAuthorization in class AbstractCertificateHttpHeaderAuthStrategy
Parameters:
credential - CertificateCredential instance
tokenAuth - TokenAuthorization instance
Returns:
Map of HTTP headers
Throws:
OAuthException


Copyright © 2015. All Rights Reserved.