Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.base.credential;

CertificateCredential encapsulates certificate credential information used by service authentication systems.
  
  public class CertificateCredential implements ICredential {

Username credential
 
 	private String userName;

Password credential
 
 	private String password;

Application Id (Used by Platform APIs)
 
 	private String applicationId;

Certificate path
 
 	private String certificatePath;

Certificate key
 
 	private String certificateKey;

 
Certificate Credential

Parameters:
userName UserName
password Password
certificatePath Certificate file path
certificateKey Certificate private key
 
 	public CertificateCredential(String userNameString password,
 			String certificatePathString certificateKey) {
 		super();
 		if (userName == null || userName.trim().length() == 0) {
 					"userName cannot be empty or null");
 		}
 		if (password == null || password.trim().length() == 0) {
 					"password cannot be empty or null");
 		}
 		if (certificatePath == null || certificatePath.trim().length() == 0) {
 					"certificatePath cannot be empty or null");
 		}
 		if (certificateKey == null || certificateKey.trim().length() == 0) {
 					"certificateKey cannot be empty or null");
 		}
 		this. = userName;
 		this. = password;
 		this. = certificatePath;
 		this. = certificateKey;
 	}

Returns:
the applicationId
 
 	public String getApplicationId() {
 		return ;
 	}

Parameters:
applicationId the applicationId to set, ignored for MERCHANT APIs
 
 	public void setApplicationId(String applicationId) {
 		this. = applicationId;
 	}

Returns:
the 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
			ThirdPartyAuthorization thirdPartyAuthorization) {
		this. = thirdPartyAuthorization;
	}

Returns:
the userName
	public String getUserName() {
		return ;
	}

Returns:
the password
	public String getPassword() {
		return ;
	}

Returns:
the certificatePath
	}

Returns:
the certificateKey
	}
New to GrepCode? Check out our FAQ X