public interface ConnectionHandler extends HandleableCloseable<ConnectionHandler>
HandleableCloseable.Key| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
getLocalAddress()
Get the local address, if any.
|
SecurityIdentity |
getLocalIdentity()
Get the local identity corresponding to the peer authentication which was performed on this connection, if it
is an incoming connection.
|
String |
getLocalSaslServerName()
Get the local SASL server name that we have given to the peer.
|
Set<String> |
getOfferedMechanisms()
Get the available SASL mechanisms.
|
SocketAddress |
getPeerAddress()
Get the peer address, if any.
|
String |
getPeerSaslServerName()
Get the SASL server name that the peer gives for itself.
|
Principal |
getPrincipal()
Get the principal used to authenticate the local client against the peer.
|
String |
getRemoteEndpointName()
Get the name of the remote endpoint.
|
SSLSession |
getSslSession()
/**
Get the underlying
SSLSession for this connection if one is established. |
Cancellable |
open(String serviceType,
Result<Channel> result,
OptionMap optionMap)
Open a request handler.
|
void |
sendAuthChallenge(int id,
byte[] challenge)
Send an authentication challenge.
|
void |
sendAuthDelete(int id)
Send an authentication delete message.
|
void |
sendAuthDeleteAck(int id)
Send an authentication delete acknowledgement message.
|
void |
sendAuthReject(int id)
Send an authentication reject message.
|
void |
sendAuthRequest(int id,
String mechName,
byte[] initialResponse)
Send an authentication request.
|
void |
sendAuthResponse(int id,
byte[] response)
Send an authentication response.
|
void |
sendAuthSuccess(int id,
byte[] challenge)
Send an authentication complete message.
|
boolean |
supportsRemoteAuth()
Determine if the connection handler supports the remote authentication protocol.
|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsync, isOpenCancellable open(String serviceType, Result<Channel> result, OptionMap optionMap)
serviceType - the service type stringresult - the result for the connected channeloptionMap - the options for this serviceSSLSession getSslSession()
SSLSession for this connection if one is established.SSLSession for the connection if one is established, otherwise returns null.String getRemoteEndpointName()
SocketAddress getLocalAddress()
null if there is noneSocketAddress getPeerAddress()
null if there is noneString getPeerSaslServerName()
null)String getLocalSaslServerName()
null)SecurityIdentity getLocalIdentity()
null for this property.null if the connection has no local identity and no
local security domain configurationboolean supportsRemoteAuth()
true if remote authentication is supported, false otherwiseSet<String> getOfferedMechanisms()
Principal getPrincipal()
null if the connection is inboundvoid sendAuthRequest(int id,
String mechName,
byte[] initialResponse)
throws IOException
id - the ID number to usemechName - the mechanism name (not null)initialResponse - the initial response (possibly null)IOException - if a transmission error occursvoid sendAuthChallenge(int id,
byte[] challenge)
throws IOException
id - the ID number to usechallenge - the challenge body (not null)IOException - if a transmission error occursvoid sendAuthResponse(int id,
byte[] response)
throws IOException
id - the ID number to useresponse - the response body (not null)IOException - if a transmission error occursvoid sendAuthSuccess(int id,
byte[] challenge)
throws IOException
id - the ID number to usechallenge - the final challenge (may be null if none is needed)IOException - if a transmission error occursvoid sendAuthReject(int id)
throws IOException
id - the ID number to useIOException - if a transmission error occursvoid sendAuthDelete(int id)
throws IOException
id - the ID number to useIOException - if a transmission error occursvoid sendAuthDeleteAck(int id)
throws IOException
id - the ID number to useIOException - if a transmission error occursCopyright © 2017 JBoss by Red Hat. All rights reserved.