Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.base;
 
 import java.util.Map;
 
AbstractSignatureHttpHeaderAuthStrategy is an abstract implementation for signature based ICredential to be realized as HTTP headers
public abstract class AbstractSignatureHttpHeaderAuthStrategy implements
Endpoint url
	protected String endPointUrl;

AbstractCertificateHttpHeaderAuthStrategy

Parameters:
endPointUrl Endpoint URL
		this. = endPointUrl;
	}

Returns CertificateCredential as HTTP headers
			throws OAuthException {
		Map<StringStringheaders = null;
		if (credential.getThirdPartyAuthorization() instanceof TokenAuthorization) {
			headers = processTokenAuthorization(credential,
					(TokenAuthorizationcredential
else {
			headers = new HashMap<StringString>();
					credential.getUserName());
					credential.getPassword());
					credential.getSignature());
		}
		return headers;
	}

Process TokenAuthorization based on API format

Parameters:
credential Instance of com.paypal.base.credential.SignatureCredential
tokenAuth Instance of com.paypal.base.credential.TokenAuthorization
Returns:
Map of HTTP headers
Throws:
com.paypal.base.exception.OAuthException
	protected abstract Map<StringStringprocessTokenAuthorization(
			SignatureCredential credentialTokenAuthorization tokenAuth)
New to GrepCode? Check out our FAQ X