public static class HadoopThriftAuthBridge.Client extends Object
Constructor and Description |
---|
HadoopThriftAuthBridge.Client() |
Modifier and Type | Method and Description |
---|---|
org.apache.thrift.transport.TTransport |
createClientTransport(String principalConfig,
String host,
String methodStr,
String tokenStrForm,
org.apache.thrift.transport.TTransport underlyingTransport,
Map<String,String> saslProps)
Create a client-side SASL transport that wraps an underlying transport.
|
public org.apache.thrift.transport.TTransport createClientTransport(String principalConfig, String host, String methodStr, String tokenStrForm, org.apache.thrift.transport.TTransport underlyingTransport, Map<String,String> saslProps) throws IOException
method
- The authentication method to use. Currently only KERBEROS is
supported.serverPrincipal
- The Kerberos principal of the target server.underlyingTransport
- The underlying transport mechanism, usually a TSocket.saslProps
- the sasl properties to create the client withIOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.