Class OpenSAMLWrapper<T>

  • Type Parameters:
    T - process return type
    Direct Known Subclasses:
    SamlProfileWrapper, SamlRedirectActionWrapper, SamlSPMetadataWrapper, SamlValidateIdPMetadata

    public abstract class OpenSAMLWrapper<T>
    extends Object
    Overall wrapper to all operation using OpenSAML library, this allows to load the Service Loaders properly

    https://wiki.shibboleth.net/confluence/display/OS30/Initialization+and+Configuration http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html https://stackoverflow.com/questions/37948303/opensaml3-resource-not-found-default-config-xml-in-osgi-container/39004323#39004323

    • Field Detail

      • request

        protected org.kohsuke.stapler.StaplerRequest request
      • response

        protected org.kohsuke.stapler.StaplerResponse response
    • Constructor Detail

      • OpenSAMLWrapper

        public OpenSAMLWrapper()
    • Method Detail

      • get

        public T get()
        Initialize the OpenSaml services and run the process defined on the abstract method process().
        Returns:
        process return object
      • process

        protected abstract T process()
        Process to run using the OpenSaml services.
        Returns:
        process return type
      • createWebContext

        protected org.pac4j.core.context.WebContext createWebContext()
        Returns:
        J2E Context from the current HTTP request and response.
      • createSAML2Client

        protected org.pac4j.saml.client.SAML2Client createSAML2Client()
        Returns:
        a SAML2Client object to interact with the IdP service.