Class SecurityIdentityCallback
java.lang.Object
org.wildfly.security.auth.callback.SecurityIdentityCallback
- All Implemented Interfaces:
Callback,ExtendedCallback
A server-side callback used to pass a realm identity from the callback handler to the authentication mechanism. If
no realm identity is returned, any inflowed security context will be treated as anonymous.
- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the realm identity.voidsetSecurityIdentity(SecurityIdentity securityIdentity) Set the realm identity.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
-
SecurityIdentityCallback
public SecurityIdentityCallback()Construct a new instance.
-
-
Method Details
-
getSecurityIdentity
Get the realm identity.- Returns:
- the realm identity, or
nullif there is none
-
setSecurityIdentity
Set the realm identity.- Parameters:
securityIdentity- the realm identity, ornullif there is none
-