public class SaslAuthenticationContext extends Object implements AuthenticationContext
Constructor and Description |
---|
SaslAuthenticationContext(SaslServer server,
SecurityProtocol securityProtocol,
InetAddress clientAddress,
String listenerName) |
SaslAuthenticationContext(SaslServer server,
SecurityProtocol securityProtocol,
InetAddress clientAddress,
String listenerName,
Optional<SSLSession> sslSession) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
clientAddress()
Address of the authenticated client
|
String |
listenerName()
Name of the listener used for the connection
|
SecurityProtocol |
securityProtocol()
Underlying security protocol of the authentication session.
|
SaslServer |
server() |
Optional<SSLSession> |
sslSession()
Returns SSL session for the connection if security protocol is SASL_SSL.
|
public SaslAuthenticationContext(SaslServer server, SecurityProtocol securityProtocol, InetAddress clientAddress, String listenerName)
public SaslAuthenticationContext(SaslServer server, SecurityProtocol securityProtocol, InetAddress clientAddress, String listenerName, Optional<SSLSession> sslSession)
public SaslServer server()
public Optional<SSLSession> sslSession()
SSLSession.getPeerPrincipal()
.public SecurityProtocol securityProtocol()
AuthenticationContext
securityProtocol
in interface AuthenticationContext
public InetAddress clientAddress()
AuthenticationContext
clientAddress
in interface AuthenticationContext
public String listenerName()
AuthenticationContext
listenerName
in interface AuthenticationContext