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
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.kohsuke.stapler.StaplerRequest2
protected org.kohsuke.stapler.StaplerResponse2
protected SamlPluginConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.pac4j.saml.client.SAML2Client
protected org.pac4j.core.context.session.SessionStore
protected org.pac4j.core.context.WebContext
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 Details
-
samlPluginConfig
-
request
protected org.kohsuke.stapler.StaplerRequest2 request -
response
protected org.kohsuke.stapler.StaplerResponse2 response
-
-
Constructor Details
-
OpenSAMLWrapper
public OpenSAMLWrapper()
-
-
Method Details
-
get
Initialize the OpenSaml services and run the process defined on the abstract method process().- Returns:
- process return object
-
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.
-