public class BearerToken extends Object
Constructor and Description |
---|
BearerToken() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
public static Credential.AccessMethod authorizationHeaderAccessMethod()
According to the specification, this method MUST be supported by resource servers.
public static Credential.AccessMethod formEncodedBodyAccessMethod()
public static Credential.AccessMethod queryParameterAccessMethod()
Copyright © 2011–2020 Google. All rights reserved.