Class SecurityIdentityCallback
- java.lang.Object
 - 
- org.wildfly.security.auth.callback.SecurityIdentityCallback
 
 
- 
- All Implemented Interfaces:
 Callback,ExtendedCallback
public final class SecurityIdentityCallback extends Object implements 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 Constructor Description SecurityIdentityCallback()Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityIdentitygetSecurityIdentity()Get 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, wait 
- 
Methods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional, needsInformation 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getSecurityIdentity
public SecurityIdentity getSecurityIdentity()
Get the realm identity.- Returns:
 - the realm identity, or 
nullif there is none 
 
- 
setSecurityIdentity
public void setSecurityIdentity(SecurityIdentity securityIdentity)
Set the realm identity.- Parameters:
 securityIdentity- the realm identity, ornullif there is none
 
 - 
 
 -