com.google.api.client.auth.oauth2
Class BearerToken

java.lang.Object
  extended by com.google.api.client.auth.oauth2.BearerToken

public class BearerToken
extends Object

OAuth 2.0 helper for accessing protected resources using the Bearer Token specification.

Since:
1.7
Author:
Yaniv Inbar

Constructor Summary
BearerToken()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BearerToken

public BearerToken()
Method Detail

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.


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.


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.



Copyright © 2011-2012 Google. All Rights Reserved.