Class AvailableRealmsCallback
java.lang.Object
org.wildfly.security.auth.callback.AvailableRealmsCallback
- All Implemented Interfaces:
Callback,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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Get the array of realm names that was set.booleanDetermine if this callback is optional.booleanDetermine if this callback is requesting information.voidsetRealmNames(String... realmNames) Set the realm names.
-
Constructor Details
-
AvailableRealmsCallback
public AvailableRealmsCallback()Construct a new instance.
-
-
Method Details
-
getRealmNames
Get the array of realm names that was set.- Returns:
- the realm names array
-
setRealmNames
Set the realm names. None of the realm names may benull. 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 benull, may not containnull)
-
isOptional
public boolean isOptional()Description copied from interface:ExtendedCallbackDetermine if this callback is optional.- Specified by:
isOptionalin interfaceExtendedCallback- Returns:
trueif the callback is optional,falseif it is mandatory
-
needsInformation
public boolean needsInformation()Description copied from interface:ExtendedCallbackDetermine if this callback is requesting information.- Specified by:
needsInformationin interfaceExtendedCallback- Returns:
trueif the callback is requesting information,falseif it is only providing information
-