Callback (Java Platform SE 8 )
Keywords: javax.security.auth.callback.Callback interface
Date: 2026-06-25

compact1, compact2, compact3
javax.security.auth.callback

## Interface Callback

- All Known Implementing Classes:
    AuthorizeCallback, ChoiceCallback, ConfirmationCallback, LanguageCallback, NameCallback, PasswordCallback, RealmCallback, RealmChoiceCallback, TextInputCallback, TextOutputCallback

      public interface Callback

  Implementations 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.

  `Callback` implementations do not retrieve or display the information requested by underlying security services. `Callback` implementations simply provide the means to pass such requests to applications, and for applications, if appropriate, to return requested information back to the underlying security services.

  See Also:
    `CallbackHandler`, `ChoiceCallback`, `ConfirmationCallback`, `LanguageCallback`, `NameCallback`, `PasswordCallback`, `TextInputCallback`, `TextOutputCallback`

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.