com.paypal.base.credential
Class CertificateCredential
java.lang.Object
com.paypal.base.credential.CertificateCredential
- All Implemented Interfaces:
- ICredential
public class CertificateCredential
- extends Object
- implements ICredential
CertificateCredential encapsulates certificate credential
information used by service authentication systems.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CertificateCredential
public CertificateCredential(String userName,
String password,
String certificatePath,
String certificateKey)
- Certificate Credential
- Parameters:
userName - UserNamepassword - PasswordcertificatePath - Certificate file pathcertificateKey - Certificate private key
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.