public class OAuthToken extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OAuthToken.Type
This enum defines the supported set of OAuth token types.
|
| Constructor and Description |
|---|
OAuthToken(OAuthToken.Type type,
String tokenValue)
Constructs an OAuthToken with the specified
OAuthToken.Type and token value. |
OAuthToken(String tokenValue)
Constructs an OAuth 2.0 bearer token with the given b64token value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormattedValue()
Returns a formatted representation of the token type and value for use as
an Authorization header value.
|
String |
getTokenValue()
Returns the token value.
|
OAuthToken.Type |
getType()
Returns the token type.
|
public OAuthToken(String tokenValue)
tokenValue - The bearer token value.public OAuthToken(OAuthToken.Type type, String tokenValue)
OAuthToken.Type and token value.type - The token Type.tokenValue - The token value.public OAuthToken.Type getType()
public String getTokenValue()
public String getFormattedValue()
Copyright © 2011–2016 UnboundID. All rights reserved.