Class OpenSAMLWrapper<T>

java.lang.Object
org.jenkinsci.plugins.saml.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 Details

    • samlPluginConfig

      protected SamlPluginConfig samlPluginConfig
    • request

      protected org.kohsuke.stapler.StaplerRequest2 request
    • response

      protected org.kohsuke.stapler.StaplerResponse2 response
  • Constructor Details

    • OpenSAMLWrapper

      public OpenSAMLWrapper()
  • Method Details

    • 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.
    • createSessionStore

      protected org.pac4j.core.context.session.SessionStore createSessionStore()
    • createSAML2Client

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