ProtocolContext protocolContext = new HTTPContext(request, response, context);
// Create the request/response
SAML2HandlerRequest saml2HandlerRequest = new DefaultSAML2HandlerRequest(protocolContext,
holder.getIssuer(), documentHolder, HANDLER_TYPE.SP);
if (keyManager != null)
saml2HandlerRequest.addOption(GeneralConstants.DECRYPTING_KEY, keyManager.getSigningKey());
SAML2HandlerResponse saml2HandlerResponse = new DefaultSAML2HandlerResponse();
// Deal with handler chains
for (SAML2Handler handler : handlers) {