Class OptionalNameCallback
java.lang.Object
javax.security.auth.callback.NameCallback
org.wildfly.security.auth.callback.OptionalNameCallback
- All Implemented Interfaces:
Serializable,Callback,ExtendedCallback
A
NameCallback which is optional, for mechanisms that can accept a name from the server.- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalNameCallback(String prompt) Construct a new instance.OptionalNameCallback(String prompt, String defaultName) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if this callback is requesting information.Methods inherited from class javax.security.auth.callback.NameCallback
getDefaultName, getName, getPrompt, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional
-
Constructor Details
-
OptionalNameCallback
Construct a new instance.- Parameters:
prompt- the prompt to offer the user
-
OptionalNameCallback
Construct a new instance.- Parameters:
prompt- the prompt to offer the userdefaultName- the default name to specify (must not benull)
-
-
Method Details
-
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
-