Class AvailableRealmsCallback

java.lang.Object
org.wildfly.security.auth.callback.AvailableRealmsCallback
All Implemented Interfaces:
Callback, ExtendedCallback

public final class AvailableRealmsCallback extends Object implements ExtendedCallback
A callback used to query a server participant for the names of realms that it is prepared to offer. Note that the authentication mechanism realm concept is not directly related to the Elytron security realm concept.
Author:
David M. Lloyd
  • Constructor Details

    • AvailableRealmsCallback

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

    • getRealmNames

      public String[] getRealmNames()
      Get the array of realm names that was set.
      Returns:
      the realm names array
    • setRealmNames

      public void setRealmNames(String... realmNames)
      Set the realm names. None of the realm names may be null. The array is not copied, so care must be taken to avoid modifying the realm array after it is set.
      Parameters:
      realmNames - the realm names (may not be null, may not contain null)
    • isOptional

      public boolean isOptional()
      Description copied from interface: ExtendedCallback
      Determine if this callback is optional.
      Specified by:
      isOptional in interface ExtendedCallback
      Returns:
      true if the callback is optional, false if it is mandatory
    • needsInformation

      public boolean needsInformation()
      Description copied from interface: ExtendedCallback
      Determine if this callback is requesting information.
      Specified by:
      needsInformation in interface ExtendedCallback
      Returns:
      true if the callback is requesting information, false if it is only providing information