| Package | Description | 
|---|---|
| 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). | 
| javax.security.sasl | Contains class and interfaces for supporting SASL. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ChoiceCallback Underlying security services instantiate and pass a
  ChoiceCallbackto thehandlemethod of aCallbackHandlerto display a list of choices
 and to retrieve the selected choice(s). | 
| class  | ConfirmationCallback Underlying security services instantiate and pass a
  ConfirmationCallbackto thehandlemethod of aCallbackHandlerto ask for YES/NO,
 OK/CANCEL, YES/NO/CANCEL or other similar confirmations. | 
| class  | LanguageCallback Underlying security services instantiate and pass a
  LanguageCallbackto thehandlemethod of aCallbackHandlerto retrieve theLocaleused for localizing text. | 
| class  | NameCallback Underlying security services instantiate and pass a
  NameCallbackto thehandlemethod of aCallbackHandlerto retrieve name information. | 
| class  | PasswordCallback Underlying security services instantiate and pass a
  PasswordCallbackto thehandlemethod of aCallbackHandlerto retrieve password information. | 
| class  | TextInputCallback Underlying security services instantiate and pass a
  TextInputCallbackto thehandlemethod of aCallbackHandlerto retrieve generic text
 information. | 
| class  | TextOutputCallback Underlying security services instantiate and pass a
  TextOutputCallbackto thehandlemethod of aCallbackHandlerto display information messages,
 warning messages and error messages. | 
| Modifier and Type | Method and Description | 
|---|---|
| Callback | UnsupportedCallbackException. getCallback()Get the unrecognized  Callback. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | CallbackHandler. handle(Callback[] callbacks) Retrieve or display the information requested in the
 provided Callbacks. | 
| Constructor and Description | 
|---|
| UnsupportedCallbackException(Callback callback)Constructs a  UnsupportedCallbackExceptionwith no detail message. | 
| UnsupportedCallbackException(Callback callback,
                            String msg)Constructs a UnsupportedCallbackException with the specified detail
 message. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AuthorizeCallbackThis callback is used by  SaslServerto determine whether
 one entity (identified by an authenticated authentication id)
 can act on
 behalf of another entity (identified by an authorization id). | 
| class  | RealmCallbackThis callback is used by  SaslClientandSaslServerto retrieve realm information. | 
| class  | RealmChoiceCallbackThis callback is used by  SaslClientandSaslServerto obtain a realm given a list of realm choices. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.