public class OAuthClient extends Object
| Constructor and Description |
|---|
OAuthClient() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateToken(String tokenApiUrl,
String payload,
String credentials)
Method to generate the access token from an OAuth server
|
public static String generateToken(String tokenApiUrl, String payload, String credentials) throws AuthException, IOException
tokenApiUrl - The token url of the serverpayload - The payload of the requestcredentials - The encoded credentialsAuthException - In the event of an unexpected HTTP status code return from the server or access_token
key missing in the response payloadIOException - In the event of a problem parsing the response from the serverCopyright © 2005–2024 Apache Software Foundation. All rights reserved.