Package org.jenkinsci.plugins.saml
Class IdpMetadataConfiguration
java.lang.Object
hudson.model.AbstractDescribableImpl<IdpMetadataConfiguration>
org.jenkinsci.plugins.saml.IdpMetadataConfiguration
- All Implemented Interfaces:
Describable<IdpMetadataConfiguration>
Class to store the info about how to manage the IdP Metadata.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInline Constructor.IdpMetadataConfiguration
(String url, Long period) Idp Metadata downloaded from an Url Constructor.IdpMetadataConfiguration
(String xml, String url, Long period) Jelly Constructor. -
Method Summary
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
IdpMetadataConfiguration
Jelly Constructor.- Parameters:
xml
- Idp Metadata XML. if xml is null, url and period should not.url
- Url to download the IdP Metadata.period
- Period in minutes between updates of the IdP Metadata.
-
IdpMetadataConfiguration
Inline Constructor.- Parameters:
xml
- IdP Metadata XML.
-
IdpMetadataConfiguration
Idp Metadata downloaded from an Url Constructor.- Parameters:
url
- URL to grab the IdP Metadata.period
- Period between updates of the IdP Metadata.
-
-
Method Details
-
getXml
-
getUrl
-
getPeriod
-
getIdpMetadata
- Returns:
- Return the Idp Metadata from the XML file JENKINS_HOME/saml-idp.metadata.xml.
- Throws:
IOException
- in case it can not read the IdP Metadata file.
-
createIdPMetadataFile
Creates the IdP Metadata file (saml-idp.metadata.xml) in JENKINS_HOME using the configuration.- Throws:
IOException
- in case of error writing the file.
-
updateIdPMetadata
Gets the IdP Metadata from an URL, then validate it and write it to a file (JENKINS_HOME/saml-idp.metadata.xml).- Throws:
IOException
- in case of error writing the file or validating the content.
-
toString
-