Class PeerPrincipalCallback
- java.lang.Object
-
- org.wildfly.security.auth.callback.PeerPrincipalCallback
-
- All Implemented Interfaces:
Serializable
,Callback
,ExtendedCallback
public final class PeerPrincipalCallback extends Object implements ExtendedCallback, Serializable
An optional callback to inform the callback handler of the peer's principal identity.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Principal
principal
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description PeerPrincipalCallback(Principal principal)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
getPrincipal()
Get the peer principal.-
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
-
principal
private final Principal principal
-
-
Constructor Detail
-
PeerPrincipalCallback
public PeerPrincipalCallback(Principal principal)
Construct a new instance.- Parameters:
principal
- the peer principal
-
-
Method Detail
-
getPrincipal
public Principal getPrincipal()
Get the peer principal.- Returns:
- the peer principal
-
-