public class IdpMetadataConfiguration extends AbstractDescribableImpl<IdpMetadataConfiguration>
Modifier and Type | Class and Description |
---|---|
static class |
IdpMetadataConfiguration.DescriptorImpl |
Constructor and Description |
---|
IdpMetadataConfiguration(String xml)
Inline Constructor.
|
IdpMetadataConfiguration(String url,
Long period)
Idp Metadata downloaded from an Url Constructor.
|
IdpMetadataConfiguration(String xml,
String url,
Long period)
Jelly Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createIdPMetadataFile()
Creates the IdP Metadata file (saml-idp.metadata.xml) in JENKINS_HOME using the configuration.
|
String |
getIdpMetadata() |
Long |
getPeriod() |
String |
getUrl() |
String |
getXml() |
String |
toString() |
void |
updateIdPMetadata()
Gets the IdP Metadata from an URL, then validate it and write it to a file (JENKINS_HOME/saml-idp.metadata.xml).
|
getDescriptor
@DataBoundConstructor public IdpMetadataConfiguration(String xml, String url, Long period)
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.public IdpMetadataConfiguration(@Nonnull String xml)
xml
- IdP Metadata XML.public String getXml()
public String getUrl()
public Long getPeriod()
public String getIdpMetadata() throws IOException
IOException
- in case it can not read the IdP Metadata file.public void createIdPMetadataFile() throws IOException
IOException
- in case of error writing the file.public void updateIdPMetadata() throws IOException
IOException
- in case of error writing the file or validating the content.Copyright © 2016–2021. All rights reserved.