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:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSocketAddressCallback.KindEndpoint disposition kinds. 
- 
Field Summary
Fields Modifier and Type Field Description private SocketAddressaddressprivate SocketAddressCallback.Kindkindprivate static longserialVersionUID 
- 
Constructor Summary
Constructors Constructor Description SocketAddressCallback(SocketAddress address)Construct a new instance.SocketAddressCallback(SocketAddress address, SocketAddressCallback.Kind kind)Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketAddressgetAddress()Get the endpoint socket address.SocketAddressCallback.KindgetKind()Get the endpoint disposition.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional, needsInformation 
 - 
 
 - 
 
- 
- 
Field Detail
- 
serialVersionUID
private static final long serialVersionUID
- See Also:
 - Constant Field Values
 
 
- 
address
private final SocketAddress address
 
- 
kind
private final SocketAddressCallback.Kind kind
 
 - 
 
- 
Constructor Detail
- 
SocketAddressCallback
public SocketAddressCallback(SocketAddress address, SocketAddressCallback.Kind kind)
Construct a new instance.- Parameters:
 address- the endpoint socket addresskind- the disposition of the endpoint
 
- 
SocketAddressCallback
public SocketAddressCallback(SocketAddress address)
Construct a new instance. The disposition is assumed to beSocketAddressCallback.Kind.PEER.- Parameters:
 address- the endpoint socket address
 
 - 
 
- 
Method Detail
- 
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
 
 
 - 
 
 -