public class BearerTokenOAuth 2.0 helper for accessing protected resources using the Bearer Token specification.
Static Methods
authorizationHeaderAccessMethod()
public static Credential.AccessMethod authorizationHeaderAccessMethod()Returns a new instance of an immutable and thread-safe OAuth 2.0 method for accessing protected resources using the Authorization Request Header Field.
According to the specification, this method MUST be supported by resource servers.
| Returns | |
|---|---|
| Type | Description |
Credential.AccessMethod |
|
formEncodedBodyAccessMethod()
public static Credential.AccessMethod formEncodedBodyAccessMethod()Returns a new instance of an immutable and thread-safe OAuth 2.0 method for accessing protected resources using the Form-Encoded Body Parameter.
| Returns | |
|---|---|
| Type | Description |
Credential.AccessMethod |
|
queryParameterAccessMethod()
public static Credential.AccessMethod queryParameterAccessMethod()Returns a new instance of an immutable and thread-safe OAuth 2.0 method for accessing protected resources using the URI Query Parameter.
| Returns | |
|---|---|
| Type | Description |
Credential.AccessMethod |
|
Constructors
BearerToken()
public BearerToken()