Class HttpCallbackHandler
java.lang.Object
org.forgerock.caf.authentication.framework.HttpCallbackHandler
- All Implemented Interfaces:
CallbackHandler
Callback handler for the JASPI runtime.
- Since:
- 1.0.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HttpCallbackHandler
public HttpCallbackHandler()
-
-
Method Details
-
handle
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.
-