javax.security.auth.callback (Java SE 9 & JDK 9 ) (original) (raw)
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
- Interface Summary
Interface Description Callback Implementations of this interface are passed to aCallbackHandler, 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. CallbackHandler An application implements a CallbackHandler and 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. - Class Summary
Class Description ChoiceCallback Underlying security services instantiate and pass aChoiceCallback to the handle method of a CallbackHandler to display a list of choices and to retrieve the selected choice(s). ConfirmationCallback Underlying security services instantiate and pass aConfirmationCallback to the handle method of a CallbackHandler to ask for YES/NO, OK/CANCEL, YES/NO/CANCEL or other similar confirmations. LanguageCallback Underlying security services instantiate and pass aLanguageCallback to the handle method of a CallbackHandler to retrieve the Locale used for localizing text. NameCallback Underlying security services instantiate and pass aNameCallback to the handle method of a CallbackHandler to retrieve name information. PasswordCallback Underlying security services instantiate and pass aPasswordCallback to the handle method of a CallbackHandler to retrieve password information. TextInputCallback Underlying security services instantiate and pass aTextInputCallback to the handle method of a CallbackHandler to retrieve generic text information. TextOutputCallback Underlying security services instantiate and pass aTextOutputCallback to the handle method of a CallbackHandler to display information messages, warning messages and error messages. - Exception Summary
Exception Description UnsupportedCallbackException Signals that a CallbackHandler does not recognize a particular Callback.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.