org.apache.hadoop.hbase.security.token
Interface AuthenticationProtocol

All Superinterfaces:
CoprocessorProtocol, VersionedProtocol
All Known Implementing Classes:
TokenProvider

public interface AuthenticationProtocol
extends CoprocessorProtocol

Defines a custom RPC protocol for obtaining authentication tokens


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.ipc.CoprocessorProtocol
VERSION
 
Method Summary
 org.apache.hadoop.security.token.Token<AuthenticationTokenIdentifier> getAuthenticationToken()
          Obtains a token capable of authenticating as the current user for future connections.
 String whoami()
          Returns the currently authenticated username.
 
Methods inherited from interface org.apache.hadoop.hbase.ipc.VersionedProtocol
getProtocolSignature, getProtocolVersion
 

Method Detail

getAuthenticationToken

org.apache.hadoop.security.token.Token<AuthenticationTokenIdentifier> getAuthenticationToken()
                                                                                             throws IOException
Obtains a token capable of authenticating as the current user for future connections.

Returns:
an authentication token for the current user
Throws:
IOException - If obtaining a token is denied or encounters an error

whoami

String whoami()
Returns the currently authenticated username.



Copyright © 2014 The Apache Software Foundation. All Rights Reserved.