// Create and init handlers for IDP
SAML2AuthenticationHandler authenticationHandlerIdp = new SAML2AuthenticationHandler();
SAML2InResponseToVerificationHandler verificationHandlerIdp = new SAML2InResponseToVerificationHandler();
authenticationHandlerIdp.initChainConfig(chainConfigIdp);
authenticationHandlerIdp.initHandlerConfig(handlerConfig);
verificationHandlerIdp.initChainConfig(chainConfigIdp);
verificationHandlerIdp.initHandlerConfig(handlerConfig);
HttpSession session = BaseSAML2Handler.getHttpSession(idpHandlerRequest);
session.setAttribute(GeneralConstants.PRINCIPAL_ID, new Principal() {