@InterfaceAudience.Private public class HBaseSaslRpcServer extends Object
org.apache.hadoop.security| Modifier and Type | Class and Description |
|---|---|
private class |
HBaseSaslRpcServer.SaslDigestCallbackHandler
CallbackHandler for SASL DIGEST-MD5 mechanism
|
private static class |
HBaseSaslRpcServer.SaslGssCallbackHandler
CallbackHandler for SASL GSSAPI Kerberos mechanism
|
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.security.UserGroupInformation |
attemptingUser |
private static org.slf4j.Logger |
LOG |
private SaslServer |
saslServer |
| Constructor and Description |
|---|
HBaseSaslRpcServer(AuthMethod method,
Map<String,String> saslProps,
org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Release resources used by wrapped saslServer
|
byte[] |
evaluateResponse(byte[] response) |
org.apache.hadoop.security.UserGroupInformation |
getAttemptingUser() |
String |
getAuthorizationID() |
static <T extends org.apache.hadoop.security.token.TokenIdentifier> |
getIdentifier(String id,
org.apache.hadoop.security.token.SecretManager<T> secretManager) |
String |
getNegotiatedQop() |
boolean |
isComplete() |
byte[] |
unwrap(byte[] buf,
int off,
int len) |
byte[] |
wrap(byte[] buf,
int off,
int len) |
private static final org.slf4j.Logger LOG
private final SaslServer saslServer
private org.apache.hadoop.security.UserGroupInformation attemptingUser
public HBaseSaslRpcServer(AuthMethod method, Map<String,String> saslProps, org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) throws IOException
IOExceptionpublic boolean isComplete()
public byte[] evaluateResponse(byte[] response) throws SaslException
SaslExceptionpublic void dispose()
public org.apache.hadoop.security.UserGroupInformation getAttemptingUser()
public byte[] wrap(byte[] buf, int off, int len) throws SaslException
SaslExceptionpublic byte[] unwrap(byte[] buf, int off, int len) throws SaslException
SaslExceptionpublic String getNegotiatedQop()
public String getAuthorizationID()
public static <T extends org.apache.hadoop.security.token.TokenIdentifier> T getIdentifier(String id, org.apache.hadoop.security.token.SecretManager<T> secretManager) throws org.apache.hadoop.security.token.SecretManager.InvalidToken
org.apache.hadoop.security.token.SecretManager.InvalidTokenCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.