Package org.jenkinsci.plugins.saml
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 properlyhttps://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 Summary
Fields Modifier and Type Field Description protected org.kohsuke.stapler.StaplerRequest
request
protected org.kohsuke.stapler.StaplerResponse
response
protected SamlPluginConfig
samlPluginConfig
-
Constructor Summary
Constructors Constructor Description OpenSAMLWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.pac4j.saml.client.SAML2Client
createSAML2Client()
protected org.pac4j.core.context.WebContext
createWebContext()
T
get()
Initialize the OpenSaml services and run the process defined on the abstract method process().protected abstract T
process()
Process to run using the OpenSaml services.
-
-
-
Field Detail
-
samlPluginConfig
protected SamlPluginConfig samlPluginConfig
-
request
protected org.kohsuke.stapler.StaplerRequest request
-
response
protected org.kohsuke.stapler.StaplerResponse response
-
-
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.
-
-