FakeKerberosAuthMethod, KerberosAuthMethod, SimpleAuthMethod, TokenAuthMethodpublic abstract class RpcAuthMethod
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected byte |
authcode |
Deprecated.
|
protected UserGroupInformation.AuthenticationMethod |
authenticationMethod |
|
protected java.lang.String |
mechanismName |
|
protected java.lang.String |
simpleName |
| Modifier | Constructor | Description |
|---|---|---|
protected |
RpcAuthMethod(byte code,
java.lang.String simpleName,
java.lang.String mechanismName,
UserGroupInformation.AuthenticationMethod authMethod) |
| Modifier and Type | Method | Description |
|---|---|---|
javax.security.auth.callback.CallbackHandler |
createCallbackHandler() |
|
javax.security.sasl.SaslClient |
createSaslClient(java.util.Map<java.lang.String,java.lang.Object> saslProperties) |
Implementors which uses SASL authentication must return
true
for isSasl() method and return and instance of
SaslClient. |
javax.security.sasl.SaslServer |
createSaslServer(Server.Connection connection,
java.util.Map<java.lang.String,java.lang.Object> saslProperties) |
Implementors which uses SASL authentication must return
true
for isSasl() method and return and instance of
SaslServer. |
boolean |
equals(java.lang.Object that) |
|
byte |
getAuthCode() |
Deprecated.
|
UserGroupInformation.AuthenticationMethod |
getAuthenticationMethod() |
|
UserGroupInformation |
getAuthorizedUgi(java.lang.String authorizedId,
SecretManager secretManager) |
|
java.lang.String |
getMechanismName() |
Return the SASL mechanism name
|
java.lang.String |
getProtocol() |
|
java.lang.String |
getServerId() |
|
UserGroupInformation |
getUser(UserGroupInformation ticket) |
|
int |
hashCode() |
|
boolean |
isNegotiable() |
false by default |
boolean |
isProxyAllowed() |
|
boolean |
isSasl() |
false by default |
java.lang.String[] |
loginModules() |
|
void |
reLogin() |
does nothing
|
boolean |
shouldReLogin() |
|
java.lang.String |
toString() |
|
void |
write(java.io.DataOutput out) |
Write to out.
|
void |
writeUGI(UserGroupInformation ugi,
org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.Builder ugiProto) |
@Deprecated protected final byte authcode
protected final java.lang.String simpleName
protected final java.lang.String mechanismName
protected final UserGroupInformation.AuthenticationMethod authenticationMethod
protected RpcAuthMethod(byte code,
java.lang.String simpleName,
java.lang.String mechanismName,
UserGroupInformation.AuthenticationMethod authMethod)
@Deprecated public byte getAuthCode()
public java.lang.String getMechanismName()
public UserGroupInformation.AuthenticationMethod getAuthenticationMethod()
public javax.security.auth.callback.CallbackHandler createCallbackHandler()
public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic java.lang.String[] loginModules()
public void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic UserGroupInformation getUser(UserGroupInformation ticket)
public void writeUGI(UserGroupInformation ugi, org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.Builder ugiProto)
public UserGroupInformation getAuthorizedUgi(java.lang.String authorizedId, SecretManager secretManager) throws java.io.IOException
java.io.IOExceptionpublic boolean shouldReLogin()
throws java.io.IOException
java.io.IOExceptionpublic void reLogin()
throws java.io.IOException,
javax.security.auth.login.LoginException
java.io.IOExceptionjavax.security.auth.login.LoginExceptionpublic boolean isProxyAllowed()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isNegotiable()
false by defaultpublic boolean isSasl()
false by defaultpublic java.lang.String getProtocol()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getServerId()
throws java.io.IOException
java.io.IOExceptionpublic javax.security.sasl.SaslClient createSaslClient(java.util.Map<java.lang.String,java.lang.Object> saslProperties)
throws java.io.IOException
true
for isSasl() method and return and instance of
SaslClient.java.io.IOExceptionpublic javax.security.sasl.SaslServer createSaslServer(Server.Connection connection, java.util.Map<java.lang.String,java.lang.Object> saslProperties) throws java.io.IOException, java.lang.InterruptedException
true
for isSasl() method and return and instance of
SaslServer.connection - java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.