Android Guides | Samples

Javax.Security.Auth.Callback Namespace

This package provides classes and interfaces needed to interact with the application in order to execute the authentication and authorization processes.

Remarks

This package provides classes and interfaces needed to interact with the application in order to execute the authentication and authorization processes. It is a classical callback mechanism: one retrieves information (i.e. for authentication purposes) and one display some messages (for example error messages).

Note that the current implementation of this package is not complete, that is, not compatible with desktop implementations of the Java programming language. It contains only what was needed to make the compiler happy, that is, classes required by other packages.

Classes

TypeReason
ICallbackDefines an empty base interface for all Callbacks used during authentication.
ICallbackHandlerNeeds to be implemented by classes that want to handle authentication ICallbacks.
PasswordCallbackUsed in conjunction with a ICallbackHandler to retrieve a password when needed.
UnsupportedCallbackExceptionThrown when a ICallbackHandler does not support a particular ICallback.