Class SocketAddressCallback

java.lang.Object
org.wildfly.security.auth.callback.SocketAddressCallback
All Implemented Interfaces:
Serializable, Callback, ExtendedCallback

public final class SocketAddressCallback extends Object implements ExtendedCallback, Serializable
An optional callback which is used to inform the callback handler of the endpoint addresses of a connection being authenticated.
Author:
David M. Lloyd
See Also:
  • Constructor Details

    • SocketAddressCallback

      public SocketAddressCallback(SocketAddress address, SocketAddressCallback.Kind kind)
      Construct a new instance.
      Parameters:
      address - the endpoint socket address
      kind - the disposition of the endpoint
    • SocketAddressCallback

      public SocketAddressCallback(SocketAddress address)
      Construct a new instance. The disposition is assumed to be SocketAddressCallback.Kind.PEER.
      Parameters:
      address - the endpoint socket address
  • Method Details

    • getAddress

      public SocketAddress getAddress()
      Get the endpoint socket address.
      Returns:
      the endpoint socket address
    • getKind

      public SocketAddressCallback.Kind getKind()
      Get the endpoint disposition.
      Returns:
      the endpoint disposition