Class UnicoreIdpConsentDeciderServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class UnicoreIdpConsentDeciderServlet
    extends pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet
    Trivial extension of IdpConsentDeciderServlet, which uses UNICORE preferences instead of SAML preferences and UNICORE SAML processor to generate automatic replay.
    Author:
    K. Benedyczak
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet

        aTypeSupport, idpEngine, lastAccessAttributeManagement, preferencesMan, samlUiServletPath, sessionMan, ssoResponseHandler
    • Constructor Summary

      Constructors 
      Constructor Description
      UnicoreIdpConsentDeciderServlet​(pl.edu.icm.unity.engine.api.attributes.AttributeTypeSupport aTypeSupport, pl.edu.icm.unity.engine.api.PreferencesManagement preferencesMan, pl.edu.icm.unity.engine.api.idp.IdPEngine idpEngine, pl.edu.icm.unity.engine.api.utils.FreemarkerAppHandler freemarker, pl.edu.icm.unity.engine.api.session.SessionManagement sessionMan, pl.edu.icm.unity.engine.api.EnquiryManagement enquiryManagement, pl.edu.icm.unity.engine.api.policyAgreement.PolicyAgreementManagement policyAgreementsMan, pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.saml.idp.SamlIdpStatisticReporter.SamlIdpStatisticReporterFactory idpStatisticReporterFactory, io.imunity.idp.LastIdPClinetAccessAttributeManagement lastAccessAttributeManagement)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void autoReplay​(pl.edu.icm.unity.saml.idp.preferences.SamlPreferences.SPSettings spPreferences, pl.edu.icm.unity.saml.idp.ctx.SAMLAuthnContext samlCtx, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Automatically sends a SAML response, without the consent screen.
      protected pl.edu.icm.unity.saml.idp.preferences.SamlPreferences.SPSettings loadPreferences​(pl.edu.icm.unity.saml.idp.ctx.SAMLAuthnContext samlCtx)  
      • Methods inherited from class pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet

        addSessionParticipant, doGet, doPost, getIdentity, getServiceUrl, getUserInfo, init, service, serviceInterruptible
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Constructor Detail

      • UnicoreIdpConsentDeciderServlet

        @Autowired
        public UnicoreIdpConsentDeciderServlet​(pl.edu.icm.unity.engine.api.attributes.AttributeTypeSupport aTypeSupport,
                                               pl.edu.icm.unity.engine.api.PreferencesManagement preferencesMan,
                                               pl.edu.icm.unity.engine.api.idp.IdPEngine idpEngine,
                                               pl.edu.icm.unity.engine.api.utils.FreemarkerAppHandler freemarker,
                                               pl.edu.icm.unity.engine.api.session.SessionManagement sessionMan,
                                               @Qualifier("insecure")
                                               pl.edu.icm.unity.engine.api.EnquiryManagement enquiryManagement,
                                               pl.edu.icm.unity.engine.api.policyAgreement.PolicyAgreementManagement policyAgreementsMan,
                                               pl.edu.icm.unity.MessageSource msg,
                                               pl.edu.icm.unity.saml.idp.SamlIdpStatisticReporter.SamlIdpStatisticReporterFactory idpStatisticReporterFactory,
                                               io.imunity.idp.LastIdPClinetAccessAttributeManagement lastAccessAttributeManagement)
    • Method Detail

      • loadPreferences

        protected pl.edu.icm.unity.saml.idp.preferences.SamlPreferences.SPSettings loadPreferences​(pl.edu.icm.unity.saml.idp.ctx.SAMLAuthnContext samlCtx)
                                                                                            throws pl.edu.icm.unity.exceptions.EngineException
        Overrides:
        loadPreferences in class pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • autoReplay

        protected void autoReplay​(pl.edu.icm.unity.saml.idp.preferences.SamlPreferences.SPSettings spPreferences,
                                  pl.edu.icm.unity.saml.idp.ctx.SAMLAuthnContext samlCtx,
                                  javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws pl.edu.icm.unity.webui.idpcommon.EopException,
                                  IOException
        Automatically sends a SAML response, without the consent screen.
        Overrides:
        autoReplay in class pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet
        Throws:
        IOException
        pl.edu.icm.unity.webui.idpcommon.EopException