Class HttpCallbackHandler
- java.lang.Object
-
- org.forgerock.caf.authentication.framework.HttpCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
public class HttpCallbackHandler extends Object implements CallbackHandler
Callback handler for the JASPI runtime.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description HttpCallbackHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Callback[] callbacks)
Called by Authentication modules to request more information about the request and response message.
-
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws UnsupportedCallbackException
Called by Authentication modules to request more information about the request and response message.Callbacks currently supported are as follows:
- CallerPrincipalCallback
- GroupPrincipalCallback
This method will handle a CallerPrincipalCallback by creating a Principal from the name stored in the Callback and adding it to the Subject from the Callback. If the name is not populated then the Principal stored in the Callback will be added to the Subject instead.
This method will handle a GroupPrincipalCallback by create a Principal for each group stored in the Callback and adding them to the Subject from the Callback.
- Specified by:
handle
in interfaceCallbackHandler
- Parameters:
callbacks
- An array of Callback objects provided by the Authentication modules.- Throws:
UnsupportedCallbackException
- If a callback is passed which is not supported by this CallbackHandler.
-
-