org.semispace.google.space
Class GoogleSpaceAuthenticator

java.lang.Object
  extended by org.semispace.google.space.GoogleSpaceAuthenticator
All Implemented Interfaces:
TokenAuthenticator

public class GoogleSpaceAuthenticator
extends Object
implements TokenAuthenticator


Constructor Summary
GoogleSpaceAuthenticator()
           
 
Method Summary
 String authenticate(String username, String password)
          Generate a token based on the username / password.
 boolean isTokenValid(String token)
           
 void setSpace(SemiSpaceInterface space)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleSpaceAuthenticator

public GoogleSpaceAuthenticator()
Method Detail

setSpace

public void setSpace(SemiSpaceInterface space)

authenticate

public String authenticate(String username,
                           String password)
Description copied from interface: TokenAuthenticator
Generate a token based on the username / password. This will typically be performed as query on a member database, or as a question upon the space.

Specified by:
authenticate in interface TokenAuthenticator

isTokenValid

public boolean isTokenValid(String token)
Specified by:
isTokenValid in interface TokenAuthenticator
Returns:
True if the token is valid, false otherwise


Copyright © 2008-2012. All Rights Reserved.