com.google.api.client.extensions.java6.auth.oauth2
Class AbstractPromptReceiver

java.lang.Object
  extended by com.google.api.client.extensions.java6.auth.oauth2.AbstractPromptReceiver
All Implemented Interfaces:
VerificationCodeReceiver

public abstract class AbstractPromptReceiver
extends Object
implements VerificationCodeReceiver

OAuth 2.0 abstract verification code receiver that prompts user to paste the code copied from the browser.

Implementation is thread-safe.

Since:
1.11
Author:
Yaniv Inbar

Constructor Summary
AbstractPromptReceiver()
           
 
Method Summary
 void stop()
          Releases any resources and stops any processes started.
 String waitForCode()
          Waits for a verification code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.api.client.extensions.java6.auth.oauth2.VerificationCodeReceiver
getRedirectUri
 

Constructor Detail

AbstractPromptReceiver

public AbstractPromptReceiver()
Method Detail

waitForCode

public String waitForCode()
Description copied from interface: VerificationCodeReceiver
Waits for a verification code.

Specified by:
waitForCode in interface VerificationCodeReceiver

stop

public void stop()
Description copied from interface: VerificationCodeReceiver
Releases any resources and stops any processes started.

Specified by:
stop in interface VerificationCodeReceiver


Copyright © 2011-2012 Google. All Rights Reserved.