public void initChainConfig(SAML2HandlerChainConfig handlerChainConfig) throws ConfigurationException { this.handlerChainConfig = handlerChainConfig; Object config = this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if(config instanceof IDPType) this.handlerType = HANDLER_TYPE.IDP; else this.handlerType = HANDLER_TYPE.SP; }
public void initChainConfig(SAML2HandlerChainConfig handlerChainConfig) throws ConfigurationException { this.handlerChainConfig = handlerChainConfig; Object config = this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if(config instanceof IDPType) this.handlerType = HANDLER_TYPE.IDP; else this.handlerType = HANDLER_TYPE.SP; }
private SPType getSPConfiguration() { SPType spConfiguration = (SPType) handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (spConfiguration == null) { throw logger.samlHandlerServiceProviderConfigNotFound(); } return spConfiguration; } }
private IDPType getConfiguration() { IDPType configuration = (IDPType) handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (configuration == null) { throw logger.nullArgumentError("IDP Configuration"); } return configuration; }
private SPType getSPConfiguration() { SPType spConfiguration = (SPType) handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (spConfiguration == null) { throw logger.samlHandlerServiceProviderConfigNotFound(); } return spConfiguration; } }
private IDPType getConfiguration() { IDPType configuration = (IDPType) handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (configuration == null) { throw logger.nullArgumentError("IDP Configuration"); } return configuration; }
private IDPType getConfiguration() { IDPType configuration = (IDPType) handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (configuration == null) { throw logger.nullArgumentError("IDP Configuration"); } return configuration; }
private SPType getSPConfiguration() { SPType spConfiguration = (SPType) handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (spConfiguration == null) { throw logger.samlHandlerServiceProviderConfigNotFound(); } return spConfiguration; } }
public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleStatusResponseType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleStatusResponseType(request, response, (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void initChainConfig(SAML2HandlerChainConfig handlerChainConfig) throws ConfigurationException { this.handlerChainConfig = handlerChainConfig; this.providerConfig = (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (!isSupportedProviderType(this.providerConfig)) { throw logger.unsupportedType(this.providerConfig.getClass().getName()); } }
public void initChainConfig(SAML2HandlerChainConfig handlerChainConfig) throws ConfigurationException { this.handlerChainConfig = handlerChainConfig; this.providerConfig = (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (!isSupportedProviderType(this.providerConfig)) { throw logger.unsupportedType(this.providerConfig.getClass().getName()); } }
public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleRequestType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleRequestType(request, response, (SPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void initChainConfig(SAML2HandlerChainConfig handlerChainConfig) throws ConfigurationException { this.handlerChainConfig = handlerChainConfig; this.providerConfig = (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION); if (!isSupportedProviderType(this.providerConfig)) { throw logger.unsupportedType(this.providerConfig.getClass().getName()); } }
public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleRequestType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleRequestType(request, response, (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleRequestType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleRequestType(request, response, (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleStatusResponseType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleStatusResponseType(request, response, (SPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleStatusResponseType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleStatusResponseType(request, response, (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleStatusResponseType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleStatusResponseType(request, response, (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleRequestType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleRequestType(request, response, (SPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }
public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { if (getType() == HANDLER_TYPE.IDP) { idp.handleRequestType(request, response, (IDPType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } else { sp.handleRequestType(request, response, (ProviderType) this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION)); } }