public class SaslPropertiesResolver extends Object implements Configurable
| Constructor and Description |
|---|
SaslPropertiesResolver() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getClientProperties(InetAddress serverAddress)
Identify the Sasl Properties to be used for a connection with a server.
|
Map<String,String> |
getClientProperties(InetAddress serverAddress,
int ingressPort)
Identify the Sasl Properties to be used for a connection with a server.
|
Configuration |
getConf()
Return the configuration used by this object.
|
Map<String,String> |
getDefaultProperties()
The default Sasl Properties read from the configuration
|
static SaslPropertiesResolver |
getInstance(Configuration conf)
Returns an instance of SaslPropertiesResolver.
|
Map<String,String> |
getServerProperties(InetAddress clientAddress)
Identify the Sasl Properties to be used for a connection with a client.
|
Map<String,String> |
getServerProperties(InetAddress clientAddress,
int ingressPort)
Identify the Sasl Properties to be used for a connection with a client.
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
public static SaslPropertiesResolver getInstance(Configuration conf)
conf - public void setConf(Configuration conf)
ConfigurablesetConf in interface Configurablepublic Configuration getConf()
ConfigurablegetConf in interface Configurablepublic Map<String,String> getDefaultProperties()
public Map<String,String> getServerProperties(InetAddress clientAddress)
clientAddress - client's addresspublic Map<String,String> getServerProperties(InetAddress clientAddress, int ingressPort)
clientAddress - client's addressingressPort - the port that the client is connectingpublic Map<String,String> getClientProperties(InetAddress serverAddress)
serverAddress - server's addresspublic Map<String,String> getClientProperties(InetAddress serverAddress, int ingressPort)
serverAddress - server's addressingressPort - the port that is used to connect to serverCopyright © 2022 Apache Software Foundation. All rights reserved.