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
ANameCallback
which is optional, for mechanisms that can accept a name from the server.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptionalNameCallback(String prompt)
Construct a new instance.OptionalNameCallback(String prompt, String defaultName)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
needsInformation()
Determine if this callback is requesting information.-
Methods inherited from class javax.security.auth.callback.NameCallback
getDefaultName, getName, getPrompt, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional
-
-
-
-
Constructor Detail
-
OptionalNameCallback
public OptionalNameCallback(String prompt)
Construct a new instance.- Parameters:
prompt
- the prompt to offer the user
-
-
Method Detail
-
needsInformation
public boolean needsInformation()
Description copied from interface:ExtendedCallback
Determine if this callback is requesting information.- Specified by:
needsInformation
in interfaceExtendedCallback
- Returns:
true
if the callback is requesting information,false
if it is only providing information
-
-