Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

TokenAuthorization encapsulates third party token authorization. Used for MERCHANT or PLATFORM APIs
 
 public class TokenAuthorization implements ThirdPartyAuthorization {

Access token
	private String accessToken;

Token secret
	private String tokenSecret;

Token based third party authorization used in MERCHANT or PLATFORM APIs

Parameters:
accessToken Access Token
tokenSecret Token Secret
	public TokenAuthorization(String accessTokenString tokenSecret) {
		super();
		if (accessToken == null || accessToken.trim().length() == 0
				|| tokenSecret == null || tokenSecret.trim().length() == 0) {
					"TokenAuthorization arguments cannot be empty or null");
		}
		this. = accessToken;
		this. = tokenSecret;
	}

Returns:
the accessToken
	public String getAccessToken() {
		return ;
	}

Returns:
the tokenSecret
	public String getTokenSecret() {
		return ;
	}
New to GrepCode? Check out our FAQ X