public final class OptionalNameCallback extends NameCallback implements ExtendedCallback
NameCallback which is optional, for mechanisms that can accept a name from the server.| Constructor and Description |
|---|
OptionalNameCallback(String prompt)
Construct a new instance.
|
OptionalNameCallback(String prompt,
String defaultName)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
needsInformation()
Determine if this callback is requesting information.
|
getDefaultName, getName, getPrompt, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOptionalpublic OptionalNameCallback(String prompt)
prompt - the prompt to offer the userpublic boolean needsInformation()
ExtendedCallbackneedsInformation in interface ExtendedCallbacktrue if the callback is requesting information, false if it is only providing informationCopyright © 2018 JBoss by Red Hat. All rights reserved.