public class HttpCallbackHandler extends Object implements CallbackHandler
Constructor and Description |
---|
HttpCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(Callback[] callbacks)
Called by Authentication modules to request more information about the request and response message.
|
public void handle(Callback[] callbacks) throws UnsupportedCallbackException
Callbacks currently supported are as follows:
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.
handle
in interface CallbackHandler
callbacks
- An array of Callback objects provided by the Authentication modules.UnsupportedCallbackException
- If a callback is passed which is not supported by this CallbackHandler.Copyright © 2010-2018, ForgeRock All Rights Reserved.