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
-
-
Field Summary
Fields Modifier and Type Field Description private String[]realmNames
-
Constructor Summary
Constructors Constructor Description AvailableRealmsCallback()Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getRealmNames()Get the array of realm names that was set.booleanisOptional()Determine if this callback is optional.booleanneedsInformation()Determine if this callback is requesting information.voidsetRealmNames(String... realmNames)Set the realm names.
-
-
-
Field Detail
-
realmNames
private String[] realmNames
-
-
Method Detail
-
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 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
-
-