Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

SignatureCredential encapsulates signature credential information used by service authentication systems
  
  public class SignatureCredential implements ICredential {

Username
 
 	private String userName;

Password
 
 	private String password;

Application ID
 
 	private String applicationId;

Signature
 
 	private String signature;

 
Signature Credential

Parameters:
userName UserName
password Password
signature Signature
 
 	public SignatureCredential(String userNameString password,
 			String signature) {
 		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 (signature == null || signature.trim().length() == 0) {
 					"signature cannot be empty or null");
 		}
 		this. = userName;
 		this. = password;
 		this. = signature;
 	}


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 signature
	public String getSignature() {
		return ;
	}
New to GrepCode? Check out our FAQ X