org.apache.hadoop.hbase.stargate.auth
Class ZooKeeperAuthenticator

java.lang.Object
  extended by org.apache.hadoop.hbase.stargate.auth.Authenticator
      extended by org.apache.hadoop.hbase.stargate.auth.ZooKeeperAuthenticator
All Implemented Interfaces:
Constants

public class ZooKeeperAuthenticator
extends Authenticator
implements Constants

A simple authenticator module for ZooKeeper.

   /stargate/
     users/
       <token>
Where <token> is a JSON formatted user record with the keys 'name' (String, required), 'token' (String, optional), 'admin' (boolean, optional), and 'disabled' (boolean, optional).


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.stargate.Constants
AUTHENTICATOR_KEY, DEFAULT_MAX_AGE, INSTANCE_ZNODE_ROOT, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_TEXT, MIMETYPE_XML, MULTIUSER_KEY, STATUS_REPORT_PERIOD_KEY, USERS_TABLE, USERS_ZNODE_ROOT, VERSION_STRING
 
Constructor Summary
ZooKeeperAuthenticator(HBaseConfiguration conf)
          Constructor
ZooKeeperAuthenticator(HBaseConfiguration conf, ZooKeeperWrapper wrapper)
          Constructor
 
Method Summary
 User getUserForToken(String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperAuthenticator

public ZooKeeperAuthenticator(HBaseConfiguration conf)
                       throws IOException
Constructor

Parameters:
conf -
Throws:
IOException

ZooKeeperAuthenticator

public ZooKeeperAuthenticator(HBaseConfiguration conf,
                              ZooKeeperWrapper wrapper)
                       throws IOException
Constructor

Parameters:
conf -
wrapper -
Throws:
IOException
Method Detail

getUserForToken

public User getUserForToken(String token)
                     throws IOException
Specified by:
getUserForToken in class Authenticator
Throws:
IOException


Copyright © 2010 The Apache Software Foundation