Class SocketAddressCallback
java.lang.Object
org.wildfly.security.auth.callback.SocketAddressCallback
- All Implemented Interfaces:
Serializable,Callback,ExtendedCallback
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEndpoint disposition kinds. -
Constructor Summary
ConstructorsConstructorDescriptionSocketAddressCallback(SocketAddress address) Construct a new instance.SocketAddressCallback(SocketAddress address, SocketAddressCallback.Kind kind) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the endpoint socket address.getKind()Get the endpoint disposition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional, needsInformation
-
Constructor Details
-
SocketAddressCallback
Construct a new instance.- Parameters:
address- the endpoint socket addresskind- the disposition of the endpoint
-
SocketAddressCallback
Construct a new instance. The disposition is assumed to beSocketAddressCallback.Kind.PEER.- Parameters:
address- the endpoint socket address
-
-
Method Details
-
getAddress
Get the endpoint socket address.- Returns:
- the endpoint socket address
-
getKind
Get the endpoint disposition.- Returns:
- the endpoint disposition
-