javax.security.auth.callback
10 classes of the module java.base.
Load them with:
using {
"javax.security.auth.callback"
}
Callback#
interface · javax.security.auth.callback.Callback
CallbackHandler#
interface · javax.security.auth.callback.CallbackHandler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
handle | handle(callbacks) | void handle(Callback[] callbacks) |
ChoiceCallback#
class · extends Object · javax.security.auth.callback.ChoiceCallback
Implements: Callback, Serializable
Constructors
new ChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multipleSelectionsAllowed) |
Ring: new ChoiceCallback(args) uses the constructor with the fewest parameters (at least one); new ChoiceCallback makes the object with the constructor without parameters; the others: (new ChoiceCallback).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
allowMultipleSelections | allowMultipleSelections() | boolean allowMultipleSelections() |
getChoices | getChoices() | String[] getChoices() |
getDefaultChoice | getDefaultChoice() | int getDefaultChoice() |
getPrompt | getPrompt() | String getPrompt() |
getSelectedIndexes | getSelectedIndexes() | int[] getSelectedIndexes() |
setSelectedIndex | setSelectedIndex(selection) | void setSelectedIndex(int selection) |
setSelectedIndexes | setSelectedIndexes(selections) | void setSelectedIndexes(int[] selections) |
The methods and fields of Object are inherited.
ConfirmationCallback#
class · extends Object · javax.security.auth.callback.ConfirmationCallback
Implements: Callback, Serializable
Constructors
new ConfirmationCallback(int messageType, String[] options, int defaultOption) |
new ConfirmationCallback(int messageType, int optionType, int defaultOption) |
new ConfirmationCallback(String prompt, int messageType, String[] options, int defaultOption) |
new ConfirmationCallback(String prompt, int messageType, int optionType, int defaultOption) |
Ring: new ConfirmationCallback(args) uses the constructor with the fewest parameters (at least one); new ConfirmationCallback makes the object with the constructor without parameters; the others: (new ConfirmationCallback).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
UNSPECIFIED_OPTION | int | constant · static | o.UNSPECIFIED_OPTION |
YES_NO_OPTION | int | constant · static | o.YES_NO_OPTION |
YES_NO_CANCEL_OPTION | int | constant · static | o.YES_NO_CANCEL_OPTION |
OK_CANCEL_OPTION | int | constant · static | o.OK_CANCEL_OPTION |
YES | int | constant · static | o.YES |
NO | int | constant · static | o.NO |
CANCEL | int | constant · static | o.CANCEL |
OK | int | constant · static | o.OK |
INFORMATION | int | constant · static | o.INFORMATION |
WARNING | int | constant · static | o.WARNING |
ERROR | int | constant · static | o.ERROR |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDefaultOption | getDefaultOption() | int getDefaultOption() |
getMessageType | getMessageType() | int getMessageType() |
getOptions | getOptions() | String[] getOptions() |
getOptionType | getOptionType() | int getOptionType() |
getPrompt | getPrompt() | String getPrompt() |
getSelectedIndex | getSelectedIndex() | int getSelectedIndex() |
setSelectedIndex | setSelectedIndex(selection) | void setSelectedIndex(int selection) |
The methods and fields of Object are inherited.
LanguageCallback#
class · extends Object · javax.security.auth.callback.LanguageCallback
Implements: Callback, Serializable
Constructors
new LanguageCallback() |
Ring: new LanguageCallback(args) uses the constructor with the fewest parameters (at least one); new LanguageCallback makes the object with the constructor without parameters; the others: (new LanguageCallback).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getLocale | getLocale() | Locale getLocale() |
setLocale | setLocale(locale) | void setLocale(Locale locale) |
The methods and fields of Object are inherited.
NameCallback#
class · extends Object · javax.security.auth.callback.NameCallback
Implements: Callback, Serializable
Constructors
new NameCallback(String prompt) |
new NameCallback(String prompt, String defaultName) |
Ring: new NameCallback(args) uses the constructor with the fewest parameters (at least one); new NameCallback makes the object with the constructor without parameters; the others: (new NameCallback).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDefaultName | getDefaultName() | String getDefaultName() |
getName | getName() | String getName() |
getPrompt | getPrompt() | String getPrompt() |
setName | setName(name) | void setName(String name) |
The methods and fields of Object are inherited.
PasswordCallback#
class · extends Object · javax.security.auth.callback.PasswordCallback
Implements: Callback, Serializable
Constructors
new PasswordCallback(String prompt, boolean echoOn) |
Ring: new PasswordCallback(args) uses the constructor with the fewest parameters (at least one); new PasswordCallback makes the object with the constructor without parameters; the others: (new PasswordCallback).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
clearPassword | clearPassword() | void clearPassword() |
getPassword | getPassword() | char[] getPassword() |
getPrompt | getPrompt() | String getPrompt() |
isEchoOn | isEchoOn() | boolean isEchoOn() |
setPassword | setPassword(password) | void setPassword(char[] password) |
The methods and fields of Object are inherited.
TextInputCallback#
class · extends Object · javax.security.auth.callback.TextInputCallback
Implements: Callback, Serializable
Constructors
new TextInputCallback(String prompt) |
new TextInputCallback(String prompt, String defaultText) |
Ring: new TextInputCallback(args) uses the constructor with the fewest parameters (at least one); new TextInputCallback makes the object with the constructor without parameters; the others: (new TextInputCallback).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDefaultText | getDefaultText() | String getDefaultText() |
getPrompt | getPrompt() | String getPrompt() |
getText | getText() | String getText() |
setText | setText(text) | void setText(String text) |
The methods and fields of Object are inherited.
TextOutputCallback#
class · extends Object · javax.security.auth.callback.TextOutputCallback
Implements: Callback, Serializable
Constructors
new TextOutputCallback(int messageType, String message) |
Ring: new TextOutputCallback(args) uses the constructor with the fewest parameters (at least one); new TextOutputCallback makes the object with the constructor without parameters; the others: (new TextOutputCallback).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
INFORMATION | int | constant · static | o.INFORMATION |
WARNING | int | constant · static | o.WARNING |
ERROR | int | constant · static | o.ERROR |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getMessage | getMessage() | String getMessage() |
getMessageType | getMessageType() | int getMessageType() |
The methods and fields of Object are inherited.
UnsupportedCallbackException#
class · extends Exception · javax.security.auth.callback.UnsupportedCallbackException
Constructors
new UnsupportedCallbackException(Callback callback) |
new UnsupportedCallbackException(Callback callback, String msg) |
Ring: new UnsupportedCallbackException(args) uses the constructor with the fewest parameters (at least one); new UnsupportedCallbackException makes the object with the constructor without parameters; the others: (new UnsupportedCallbackException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getCallback | getCallback() | Callback getCallback() |
The methods and fields of Exception are inherited.