org.apache.hadoop.hbase.stargate.auth
Class ZooKeeperAuthenticator
java.lang.Object
org.apache.hadoop.hbase.stargate.auth.Authenticator
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).
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getUserForToken
public User getUserForToken(String token)
throws IOException
- Specified by:
getUserForToken
in class Authenticator
- Throws:
IOException
Copyright © 2010 The Apache Software Foundation