public interface AFCallbackHandler
CallbackHandler but it
allows for remote callback handling by the annotation to prevent transferring
the CallbackHandler but call it remotely. Additionally, the
callbacks need to be transferred back to the caller and are thus returned.| Modifier and Type | Method and Description |
|---|---|
javax.security.auth.callback.Callback[] |
handle(javax.security.auth.callback.Callback[] callbacks)
This method is similar to
CallbackHandler.handle(Callback[]) but returns the provided callbacks back
to the caller. |
javax.security.auth.callback.Callback[] handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
CallbackHandler.handle(Callback[]) but returns the provided callbacks back
to the caller. This allows for calling this method remotely. Note that all
callbacks need to be serialisable. callbacks - The callbacks to be handled by this callback handler.java.io.IOException - If an input or output error occurs, an
IOException will be thrown.javax.security.auth.callback.UnsupportedCallbackException - If the implementation of this method
does not support one or more of the callbacks specified in the
callbacks parameter, an
UnsupportedCallbackException will be thrown.