public final class KerberosAuthMethod extends RpcAuthMethod
| Modifier and Type | Class and Description |
|---|---|
static class |
KerberosAuthMethod.SaslGssCallbackHandler
CallbackHandler for SASL GSSAPI Kerberos mechanism
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
authcode, authenticationMethod, mechanismName, simpleName| Modifier and Type | Method and Description |
|---|---|
CallbackHandler |
createCallbackHandler() |
SaslClient |
createSaslClient(Map<String,Object> saslProperties)
Implementors which uses SASL authentication must return
true
for isSasl() method and return and instance of
SaslClient. |
SaslServer |
createSaslServer(Server.Connection connection,
Map<String,Object> saslProperties)
Implementors which uses SASL authentication must return
true
for isSasl() method and return and instance of
SaslServer. |
String |
getProtocol() |
String |
getServerId() |
org.apache.hadoop.security.UserGroupInformation |
getUser(org.apache.hadoop.security.UserGroupInformation ticket) |
boolean |
isNegotiable()
false by default |
boolean |
isSasl()
false by default |
String[] |
loginModules() |
void |
reLogin()
does nothing
|
boolean |
shouldReLogin() |
static String[] |
splitKerberosName(String fullName)
Splitting fully qualified Kerberos name into parts
|
void |
writeUGI(org.apache.hadoop.security.UserGroupInformation ugi,
IpcConnectionContextProtos.UserInformationProto.Builder ugiProto) |
equals, getAuthCode, getAuthenticationMethod, getAuthorizedUgi, getMechanismName, hashCode, isProxyAllowed, toString, writepublic static final org.apache.commons.logging.Log LOG
public String[] loginModules()
loginModules in class RpcAuthMethodpublic org.apache.hadoop.security.UserGroupInformation getUser(org.apache.hadoop.security.UserGroupInformation ticket)
getUser in class RpcAuthMethodpublic void writeUGI(org.apache.hadoop.security.UserGroupInformation ugi, IpcConnectionContextProtos.UserInformationProto.Builder ugiProto)
writeUGI in class RpcAuthMethodpublic boolean isSasl()
RpcAuthMethodfalse by defaultisSasl in class RpcAuthMethodpublic boolean isNegotiable()
RpcAuthMethodfalse by defaultisNegotiable in class RpcAuthMethodpublic String getProtocol() throws IOException
getProtocol in class RpcAuthMethodIOExceptionpublic String getServerId() throws IOException
getServerId in class RpcAuthMethodIOExceptionpublic SaslClient createSaslClient(Map<String,Object> saslProperties) throws IOException
RpcAuthMethodtrue
for isSasl() method and return and instance of
SaslClient.createSaslClient in class RpcAuthMethodIOExceptionpublic SaslServer createSaslServer(Server.Connection connection, Map<String,Object> saslProperties) throws IOException, InterruptedException
RpcAuthMethodtrue
for isSasl() method and return and instance of
SaslServer.createSaslServer in class RpcAuthMethodIOExceptionInterruptedExceptionpublic CallbackHandler createCallbackHandler()
createCallbackHandler in class RpcAuthMethodpublic boolean shouldReLogin() throws IOException
shouldReLogin in class RpcAuthMethodIOExceptionpublic void reLogin() throws IOException
RpcAuthMethodreLogin in class RpcAuthMethodIOExceptionpublic static String[] splitKerberosName(String fullName)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.