Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

AbstractCertificateHttpHeaderAuthStrategy

Parameters:
endPointUrl Endpoint URL
		this. = endPointUrl;
	}

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

Process TokenAuthorization based on API format

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