Underlying security services instantiate and pass a
NameCallback to the handle
method of a CallbackHandler to retrieve name information.
javax.security.auth.callback.CallbackHandler
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private String | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | NameCallback(String
the prompt used to request the name. prompt)Construct a |
| public | NameCallback(String
the prompt used to request the information. prompt, String the name to be used as the default name displayed
with the prompt. defaultName)Construct a |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the default name, or null if thisNameCallback
was not instantiated with a defaultName.Get the default name. |
| public String | |
| public String | |
| public void |
| defaultName | back to summary |
|---|---|
private final String defaultName
| |
| inputName | back to summary |
|---|---|
private String inputName
| |
| prompt | back to summary |
|---|---|
private final String prompt
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| NameCallback | back to summary |
|---|---|
| public NameCallback(String prompt) Construct a
| |
| NameCallback | back to summary |
|---|---|
| public NameCallback(String prompt, String defaultName) Construct a
| |
| getDefaultName | back to summary |
|---|---|
| public String getDefaultName() Get the default name.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the retrieved name. | |
| getPrompt | back to summary |
|---|---|
| public String getPrompt() Get the prompt.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the retrieved name. | |