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 voidhandle(Callback[] callbacks)voidsetSecurityInfo(Principal principal, Object credential)Set the security context.
-
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException- See Also:
CallbackHandler.handle(Callback[])
-
setSecurityInfo
public void setSecurityInfo(Principal principal, Object credential)
Description copied from interface:HandlerContractSet the security context.
For X509 Certificates, they can be passed as the Credential.
- Specified by:
setSecurityInfoin interfaceHandlerContract- Parameters:
principal- Principal to be usedcredential- Credential to be used- See Also:
HandlerContract.setSecurityInfo(Principal, Object)
-
-