public interface AuthenticationProtocol extends CoprocessorProtocol
VERSION
Modifier and Type | Method and Description |
---|---|
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.
|
getProtocolSignature, getProtocolVersion
org.apache.hadoop.security.token.Token<AuthenticationTokenIdentifier> getAuthenticationToken() throws IOException
IOException
- If obtaining a token is denied or encounters an errorString whoami()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.