public AccessorInfo create(OAuthResponseParams responseParams) throws OAuthRequestException { if (location == null) { throw new OAuthRequestException(OAuthError.UNKNOWN_PROBLEM, "no location"); } if (consumer == null) { throw new OAuthRequestException(OAuthError.UNKNOWN_PROBLEM, "no consumer"); } OAuthAccessor accessor = new OAuthAccessor(consumer.getConsumer()); // request token/access token/token secret can all be null, for signed fetch, or if the OAuth // dance is just beginning accessor.requestToken = requestToken; accessor.accessToken = accessToken; accessor.tokenSecret = tokenSecret; return new AccessorInfo(accessor, consumer, method, location, sessionHandle, tokenExpireMillis); }
public AccessorInfo create(OAuthResponseParams responseParams) throws OAuthRequestException { if (location == null) { throw new OAuthRequestException(OAuthError.UNKNOWN_PROBLEM, "no location"); } if (consumer == null) { throw new OAuthRequestException(OAuthError.UNKNOWN_PROBLEM, "no consumer"); } OAuthAccessor accessor = new OAuthAccessor(consumer.getConsumer()); // request token/access token/token secret can all be null, for signed fetch, or if the OAuth // dance is just beginning accessor.requestToken = requestToken; accessor.accessToken = accessToken; accessor.tokenSecret = tokenSecret; return new AccessorInfo(accessor, consumer, method, location, sessionHandle, tokenExpireMillis); }
public AccessorInfo create(OAuthResponseParams responseParams) throws OAuthRequestException { if (location == null) { throw new OAuthRequestException(OAuthError.UNKNOWN_PROBLEM, "no location"); } if (consumer == null) { throw new OAuthRequestException(OAuthError.UNKNOWN_PROBLEM, "no consumer"); } OAuthAccessor accessor = new OAuthAccessor(consumer.getConsumer()); // request token/access token/token secret can all be null, for signed fetch, or if the OAuth // dance is just beginning accessor.requestToken = requestToken; accessor.accessToken = accessToken; accessor.tokenSecret = tokenSecret; return new AccessorInfo(accessor, consumer, method, location, sessionHandle, tokenExpireMillis); }