Package javax.security.auth.callback
package javax.security.auth.callback
This package provides the classes necessary for services
to interact with applications in order to retrieve
information (authentication data including usernames
or passwords, for example) or to display information
(error and warning messages, for example).
- Since:
- 1.4
-
ClassDescriptionImplementations of this interface are passed to a
CallbackHandler, allowing underlying security services the ability to interact with a calling application to retrieve specific authentication data such as usernames and passwords, or to display certain information, such as error and warning messages.An application implements aCallbackHandlerand passes it to underlying security services so that they may interact with the application to retrieve specific authentication data, such as usernames and passwords, or to display certain information, such as error and warning messages.Underlying security services instantiate and pass aChoiceCallbackto thehandlemethod of aCallbackHandlerto display a list of choices and to retrieve the selected choice(s).Underlying security services instantiate and pass aConfirmationCallbackto thehandlemethod of aCallbackHandlerto ask for YES/NO, OK/CANCEL, YES/NO/CANCEL or other similar confirmations.Underlying security services instantiate and pass aLanguageCallbackto thehandlemethod of aCallbackHandlerto retrieve theLocaleused for localizing text.Underlying security services instantiate and pass aNameCallbackto thehandlemethod of aCallbackHandlerto retrieve name information.Underlying security services instantiate and pass aPasswordCallbackto thehandlemethod of aCallbackHandlerto retrieve password information.Underlying security services instantiate and pass aTextInputCallbackto thehandlemethod of aCallbackHandlerto retrieve generic text information.Underlying security services instantiate and pass aTextOutputCallbackto thehandlemethod of aCallbackHandlerto display information messages, warning messages and error messages.Signals that aCallbackHandlerdoes not recognize a particularCallback.