org.glassfish.jersey.examples.oauth2.googleclient
Class SimpleOAuthService

java.lang.Object
  extended by org.glassfish.jersey.examples.oauth2.googleclient.SimpleOAuthService

public class SimpleOAuthService
extends Object

Store of credentials and Authorization flow. This is very simple one user store for credentials. In real usage we would store tokens and flows per user.

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
SimpleOAuthService()
           
 
Method Summary
static String getAccessToken()
           
static ClientIdentifier getClientIdentifier()
           
static OAuth2CodeGrantFlow getFlow()
           
static void setAccessToken(String accessToken)
           
static void setClientIdentifier(ClientIdentifier clientIdentifier)
           
static void setFlow(OAuth2CodeGrantFlow flow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleOAuthService

public SimpleOAuthService()
Method Detail

getAccessToken

public static String getAccessToken()

setAccessToken

public static void setAccessToken(String accessToken)

getFlow

public static OAuth2CodeGrantFlow getFlow()

setFlow

public static void setFlow(OAuth2CodeGrantFlow flow)

getClientIdentifier

public static ClientIdentifier getClientIdentifier()

setClientIdentifier

public static void setClientIdentifier(ClientIdentifier clientIdentifier)


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.