| java.lang.Object | |
| ↳ | javax.security.auth.callback.NameCallback |
Underlying security services instantiate and pass a
NameCallback to the handle
method of a CallbackHandler to retrieve name information.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a
NameCallback with a prompt. | |||||||||||
Construct a
NameCallback with a prompt
and default name. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the default name.
| |||||||||||
Get the retrieved name.
| |||||||||||
Get the prompt.
| |||||||||||
Set the retrieved name.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Construct a NameCallback with a prompt.
| prompt | the prompt used to request the name. |
|---|
| IllegalArgumentException | if prompt is null
or if prompt has a length of 0.
|
|---|
Construct a NameCallback with a prompt
and default name.
| prompt | the prompt used to request the information. |
|---|---|
| defaultName | the name to be used as the default name displayed with the prompt. |
| IllegalArgumentException | if prompt is null,
if prompt has a length of 0,
if defaultName is null,
or if defaultName has a length of 0.
|
|---|
Get the default name.
NameCallback
was not instantiated with a defaultName.