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 Details

    • SecurityIdentityCallback

      public SecurityIdentityCallback()
      Construct a new instance.
  • Method Details

    • getSecurityIdentity

      public SecurityIdentity getSecurityIdentity()
      Get the realm identity.
      Returns:
      the realm identity, or null if there is none
    • setSecurityIdentity

      public void setSecurityIdentity(SecurityIdentity securityIdentity)
      Set the realm identity.
      Parameters:
      securityIdentity - the realm identity, or null if there is none