Name

Interface javax.security.auth.callback.Callback-Handler

Synopsis

If you want to perform callbacks to obtain information from the user, you must create a class that implements this interface and provide that class to the LoginContext object. Certain login modules require that you implement certain callbacks; check the login module documentation for more details. In the handle( ) method, you must loop through the array, find out the actual type of each object, and then handle the type specifically.

Interface Definition

public abstract javax.security.auth.callback.CallbackHandler {

    // Instance Methods
    public abstract void handle(Callback[]);
}

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.