public abstract class RpcAuthMethod extends Object
| Modifier and Type | Field and Description |
|---|---|
protected byte |
authcode
Deprecated.
|
protected UserGroupInformation.AuthenticationMethod |
authenticationMethod |
protected String |
mechanismName |
protected String |
simpleName |
| Modifier | Constructor and Description |
|---|---|
protected |
RpcAuthMethod(byte code,
String simpleName,
String mechanismName,
UserGroupInformation.AuthenticationMethod authMethod) |
| Modifier and Type | Method and Description |
|---|---|
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. |
boolean |
equals(Object that) |
byte |
getAuthCode()
Deprecated.
|
UserGroupInformation.AuthenticationMethod |
getAuthenticationMethod() |
org.apache.hadoop.security.UserGroupInformation |
getAuthorizedUgi(String authorizedId,
org.apache.hadoop.security.token.SecretManager secretManager) |
String |
getMechanismName()
Return the SASL mechanism name
|
String |
getProtocol() |
String |
getServerId() |
org.apache.hadoop.security.UserGroupInformation |
getUser(org.apache.hadoop.security.UserGroupInformation ticket) |
int |
hashCode() |
boolean |
isNegotiable()
false by default |
boolean |
isProxyAllowed() |
boolean |
isSasl()
false by default |
String[] |
loginModules() |
void |
reLogin()
does nothing
|
boolean |
shouldReLogin() |
String |
toString() |
void |
write(DataOutput out)
Write to out.
|
void |
writeUGI(org.apache.hadoop.security.UserGroupInformation ugi,
IpcConnectionContextProtos.UserInformationProto.Builder ugiProto) |
@Deprecated protected final byte authcode
protected final String simpleName
protected final String mechanismName
protected final UserGroupInformation.AuthenticationMethod authenticationMethod
protected RpcAuthMethod(byte code, String simpleName, String mechanismName, UserGroupInformation.AuthenticationMethod authMethod)
@Deprecated public byte getAuthCode()
public String getMechanismName()
public UserGroupInformation.AuthenticationMethod getAuthenticationMethod()
public String[] loginModules()
public void write(DataOutput out) throws IOException
IOExceptionpublic org.apache.hadoop.security.UserGroupInformation getUser(org.apache.hadoop.security.UserGroupInformation ticket)
public void writeUGI(org.apache.hadoop.security.UserGroupInformation ugi, IpcConnectionContextProtos.UserInformationProto.Builder ugiProto)
public org.apache.hadoop.security.UserGroupInformation getAuthorizedUgi(String authorizedId, org.apache.hadoop.security.token.SecretManager secretManager) throws IOException
IOExceptionpublic boolean shouldReLogin() throws IOException
IOExceptionpublic void reLogin() throws IOException
IOExceptionpublic boolean isProxyAllowed()
public boolean isNegotiable()
false by defaultpublic boolean isSasl()
false by defaultpublic String getProtocol() throws IOException
IOExceptionpublic String getServerId() throws IOException
IOExceptionpublic SaslClient createSaslClient(Map<String,Object> saslProperties) throws IOException
true
for isSasl() method and return and instance of
SaslClient.IOExceptionpublic SaslServer createSaslServer(Server.Connection connection, Map<String,Object> saslProperties) throws IOException, InterruptedException
true
for isSasl() method and return and instance of
SaslServer.connection - IOExceptionInterruptedExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.