Stay organized with collections
Save and categorize content based on your preferences.
Callback
public
interface
Callback
javax.security.auth.callback.Callback
|
Known indirect subclasses
PasswordCallback |
Underlying security services instantiate and pass a
PasswordCallback to the handle
method of a CallbackHandler to retrieve password information.
|
|
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Callback\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: \n\nCallback\n========\n\n\n`\npublic\n\n\ninterface\nCallback\n`\n\n\n`\n\n\n`\n\n|---------------------------------------|\n| javax.security.auth.callback.Callback |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [PasswordCallback](/reference/javax/security/auth/callback/PasswordCallback) |------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------| | [PasswordCallback](/reference/javax/security/auth/callback/PasswordCallback) | Underlying security services instantiate and pass a `PasswordCallback` to the `handle` method of a `CallbackHandler` to retrieve password information. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\nImplementations of this interface are passed to a\n`CallbackHandler`, allowing underlying security services\nthe ability to interact with a calling application to retrieve specific\nauthentication data such as usernames and passwords, or to display\ncertain information, such as error and warning messages.\n\n`Callback` implementations do not retrieve or\ndisplay the information requested by underlying security services.\n`Callback` implementations simply provide the means\nto pass such requests to applications, and for applications,\nif appropriate, to return requested information back to the\nunderlying security services. \n**See also:**\n\n- [CallbackHandler](/reference/javax/security/auth/callback/CallbackHandler)\n- [PasswordCallback](/reference/javax/security/auth/callback/PasswordCallback)"]]