@InterfaceAudience.Private public final class FanOutOneBlockAsyncDFSOutputSaslHelper extends Object
FanOutOneBlockAsyncDFSOutput
.Modifier and Type | Class and Description |
---|---|
private static class |
FanOutOneBlockAsyncDFSOutputSaslHelper.DecryptHandler |
private static class |
FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler |
private static interface |
FanOutOneBlockAsyncDFSOutputSaslHelper.PBHelper |
private static interface |
FanOutOneBlockAsyncDFSOutputSaslHelper.SaslAdaptor |
private static class |
FanOutOneBlockAsyncDFSOutputSaslHelper.SaslClientCallbackHandler
Sets user name and password when asked by the client-side SASL object.
|
private static class |
FanOutOneBlockAsyncDFSOutputSaslHelper.SaslNegotiateHandler |
private static class |
FanOutOneBlockAsyncDFSOutputSaslHelper.SaslUnwrapHandler |
private static class |
FanOutOneBlockAsyncDFSOutputSaslHelper.SaslWrapHandler |
private static interface |
FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper |
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private static String |
MECHANISM |
private static String |
NAME_DELIMITER |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.PBHelper |
PB_HELPER |
private static String |
PROTOCOL |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.SaslAdaptor |
SASL_ADAPTOR |
private static int |
SASL_TRANSFER_MAGIC_NUMBER |
private static String |
SERVER_NAME |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper |
TRANSPARENT_CRYPTO_HELPER |
Modifier | Constructor and Description |
---|---|
private |
FanOutOneBlockAsyncDFSOutputSaslHelper() |
Modifier and Type | Method and Description |
---|---|
private static char[] |
buildClientPassword(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> blockToken) |
private static String |
buildUsername(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> blockToken) |
(package private) static org.apache.hadoop.crypto.Encryptor |
createEncryptor(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hdfs.protocol.HdfsFileStatus stat,
org.apache.hadoop.hdfs.DFSClient client) |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.PBHelper |
createPBHelper() |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.SaslAdaptor |
createSaslAdaptor() |
private static Map<String,String> |
createSaslPropertiesForEncryption(String encryptionAlgorithm) |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper |
createTransparentCryptoHelper() |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper |
createTransparentCryptoHelper27() |
private static FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper |
createTransparentCryptoHelper28() |
private static void |
doSaslNegotiation(org.apache.hadoop.conf.Configuration conf,
org.apache.hbase.thirdparty.io.netty.channel.Channel channel,
int timeoutMs,
String username,
char[] password,
Map<String,String> saslProps,
org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Void> saslPromise,
org.apache.hadoop.hdfs.DFSClient dfsClient) |
private static char[] |
encryptionKeyToPassword(byte[] encryptionKey) |
private static String |
getUserNameFromEncryptionKey(org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey encryptionKey) |
(package private) static void |
trySaslNegotiate(org.apache.hadoop.conf.Configuration conf,
org.apache.hbase.thirdparty.io.netty.channel.Channel channel,
org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo,
int timeoutMs,
org.apache.hadoop.hdfs.DFSClient client,
org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> accessToken,
org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Void> saslPromise) |
private static final org.slf4j.Logger LOG
private static final String SERVER_NAME
private static final String PROTOCOL
private static final String MECHANISM
private static final int SASL_TRANSFER_MAGIC_NUMBER
private static final String NAME_DELIMITER
private static final FanOutOneBlockAsyncDFSOutputSaslHelper.SaslAdaptor SASL_ADAPTOR
private static final FanOutOneBlockAsyncDFSOutputSaslHelper.PBHelper PB_HELPER
private static final FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper TRANSPARENT_CRYPTO_HELPER
private FanOutOneBlockAsyncDFSOutputSaslHelper()
private static FanOutOneBlockAsyncDFSOutputSaslHelper.SaslAdaptor createSaslAdaptor() throws NoSuchFieldException, NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputSaslHelper.PBHelper createPBHelper() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper createTransparentCryptoHelper27() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper createTransparentCryptoHelper28() throws ClassNotFoundException, NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputSaslHelper.TransparentCryptoHelper createTransparentCryptoHelper() throws NoSuchMethodException, ClassNotFoundException
private static String getUserNameFromEncryptionKey(org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey encryptionKey)
private static char[] encryptionKeyToPassword(byte[] encryptionKey)
private static String buildUsername(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> blockToken)
private static char[] buildClientPassword(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> blockToken)
private static Map<String,String> createSaslPropertiesForEncryption(String encryptionAlgorithm)
private static void doSaslNegotiation(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.channel.Channel channel, int timeoutMs, String username, char[] password, Map<String,String> saslProps, org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Void> saslPromise, org.apache.hadoop.hdfs.DFSClient dfsClient)
static void trySaslNegotiate(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.channel.Channel channel, org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo, int timeoutMs, org.apache.hadoop.hdfs.DFSClient client, org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> accessToken, org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Void> saslPromise) throws IOException
IOException
static org.apache.hadoop.crypto.Encryptor createEncryptor(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hdfs.protocol.HdfsFileStatus stat, org.apache.hadoop.hdfs.DFSClient client) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.