com.paypal.core.credential
Class CertificateCredential

java.lang.Object
  extended by com.paypal.core.credential.CertificateCredential
All Implemented Interfaces:
ICredential

public class CertificateCredential
extends Object
implements ICredential

CertificateCredential encapsulates certificate credential information used by service authentication systems.


Constructor Summary
CertificateCredential(String userName, String password, String certificatePath, String certificateKey)
          Certificate Credential
 
Method Summary
 String getApplicationId()
           
 String getCertificateKey()
           
 String getCertificatePath()
           
 String getPassword()
           
 ThirdPartyAuthorization getThirdPartyAuthorization()
           
 String getUserName()
           
 void setApplicationId(String applicationId)
           
 void setThirdPartyAuthorization(ThirdPartyAuthorization thirdPartyAuthorization)
          Sets any instance of ThirdPartyAuthorization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificateCredential

public CertificateCredential(String userName,
                             String password,
                             String certificatePath,
                             String certificateKey)
Certificate Credential

Parameters:
userName - UserName
password - Password
certificatePath - Certificate file path
certificateKey - Certificate private key
Method Detail

getApplicationId

public String getApplicationId()
Returns:
the applicationId

setApplicationId

public void setApplicationId(String applicationId)
Parameters:
applicationId - the applicationId to set, ignored for MERCHANT APIs

getThirdPartyAuthorization

public ThirdPartyAuthorization getThirdPartyAuthorization()
Returns:
the thirdPartyAuthorization

setThirdPartyAuthorization

public void setThirdPartyAuthorization(ThirdPartyAuthorization thirdPartyAuthorization)
Sets any instance of ThirdPartyAuthorization. Can be an Instance of TokenAuthorization or SubjectAuthorization. SubjectAuthorization is used in MERCHANT APIs

Parameters:
thirdPartyAuthorization - the thirdPartyAuthorization to set

getUserName

public String getUserName()
Returns:
the userName

getPassword

public String getPassword()
Returns:
the password

getCertificatePath

public String getCertificatePath()
Returns:
the certificatePath

getCertificateKey

public String getCertificateKey()
Returns:
the certificateKey


Copyright © 2015. All Rights Reserved.