public class OAuthClient
extends java.lang.Object
Constructor and Description |
---|
OAuthClient() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateToken(java.lang.String tokenApiUrl,
java.lang.String payload,
java.lang.String credentials)
Method to generate the access token from an OAuth server
|
public static java.lang.String generateToken(java.lang.String tokenApiUrl, java.lang.String payload, java.lang.String credentials) throws OAuthException, java.io.IOException
tokenApiUrl
- The token url of the serverpayload
- The payload of the requestcredentials
- The encoded credentialsOAuthException
- In the event of an unexpected HTTP status code return from the server or access_token
key missing in the response payloadjava.io.IOException
- In the event of a problem parsing the response from the serverCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.