Class OptionalNameCallback
- java.lang.Object
- 
- javax.security.auth.callback.NameCallback
- 
- org.wildfly.security.auth.callback.OptionalNameCallback
 
 
- 
- All Implemented Interfaces:
- Serializable,- Callback,- ExtendedCallback
 
 public final class OptionalNameCallback extends NameCallback implements ExtendedCallback ANameCallbackwhich is optional, for mechanisms that can accept a name from the server.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description OptionalNameCallback(String prompt)Construct a new instance.OptionalNameCallback(String prompt, String defaultName)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanneedsInformation()Determine if this callback is requesting information.- 
Methods inherited from class javax.security.auth.callback.NameCallbackgetDefaultName, getName, getPrompt, setName
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.wildfly.security.auth.callback.ExtendedCallbackisOptional
 
- 
 
- 
- 
- 
Constructor Detail- 
OptionalNameCallbackpublic OptionalNameCallback(String prompt) Construct a new instance.- Parameters:
- prompt- the prompt to offer the user
 
 
- 
 - 
Method Detail- 
needsInformationpublic boolean needsInformation() Description copied from interface:ExtendedCallbackDetermine if this callback is requesting information.- Specified by:
- needsInformationin interface- ExtendedCallback
- Returns:
- trueif the callback is requesting information,- falseif it is only providing information
 
 
- 
 
-