Package org.picketbox.plugins
Class PicketBoxCallbackHandler
- java.lang.Object
-
- org.picketbox.plugins.PicketBoxCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
,HandlerContract
public class PicketBoxCallbackHandler extends Object implements CallbackHandler, HandlerContract
Default Callbackhandler that primarily uses the HandlerContract for the Principal/Credential combination Anil Saldhana
-
-
Constructor Summary
Constructors Constructor Description PicketBoxCallbackHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Callback[] callbacks)
void
setSecurityInfo(Principal principal, Object credential)
Set the security context.
-
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
- See Also:
CallbackHandler.handle(Callback[])
-
setSecurityInfo
public void setSecurityInfo(Principal principal, Object credential)
Description copied from interface:HandlerContract
Set the security context.
For X509 Certificates, they can be passed as the Credential.
- Specified by:
setSecurityInfo
in interfaceHandlerContract
- Parameters:
principal
- Principal to be usedcredential
- Credential to be used- See Also:
HandlerContract.setSecurityInfo(Principal, Object)
-
-