Package org.pac4j.saml.metadata
Class SAML2HttpUrlMetadataGenerator
- java.lang.Object
-
- org.pac4j.saml.metadata.BaseSAML2MetadataGenerator
-
- org.pac4j.saml.metadata.SAML2HttpUrlMetadataGenerator
-
- All Implemented Interfaces:
SAML2MetadataGenerator
public class SAML2HttpUrlMetadataGenerator extends BaseSAML2MetadataGenerator
Generates metadata object with standard values and overridden user defined values.- Since:
- 4.0.1
- Author:
- Misagh Moayyed
-
-
Field Summary
-
Fields inherited from class org.pac4j.saml.metadata.BaseSAML2MetadataGenerator
assertionConsumerServiceUrl, authnRequestSigned, blackListedSignatureSigningAlgorithms, builderFactory, credentialProvider, defaultACSIndex, defaultSignatureSigningConfiguration, entityId, globalAlgorithmRegistry, logger, marshallerFactory, nameIdPolicyFormat, requestedAttributes, requestInitiatorLocation, responseBindingType, signatureAlgorithms, signatureReferenceDigestMethods, signMetadata, singleLogoutServiceUrl, wantAssertionSigned
-
-
Constructor Summary
Constructors Constructor Description SAML2HttpUrlMetadataGenerator(URL metadataUrl, org.apache.http.client.HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.opensaml.saml.metadata.resolver.impl.AbstractBatchMetadataResolver
createMetadataResolver(org.springframework.core.io.Resource metadataResource)
Duration
getMaxRefreshDelay()
URL
getMetadataUrl()
Duration
getMinRefreshDelay()
float
getRefreshDelayFactor()
void
setMaxRefreshDelay(Duration maxRefreshDelay)
void
setMinRefreshDelay(Duration minRefreshDelay)
void
setRefreshDelayFactor(float refreshDelayFactor)
boolean
storeMetadata(String metadata, org.springframework.core.io.Resource resource, boolean force)
-
Methods inherited from class org.pac4j.saml.metadata.BaseSAML2MetadataGenerator
buildEntityDescriptor, buildMetadataResolver, buildNameIDFormat, buildSPSSODescriptor, generateMetadataExtensions, getAssertionConsumerService, getBlackListedSignatureSigningAlgorithms, getContactPersons, getCredentialProvider, getDefaultACSIndex, getEntityId, getKeyDescriptor, getMetadata, getMetadataUIInfos, getNameIdPolicyFormat, getRequestedAttributes, getSignatureAlgorithms, getSignatureReferenceDigestMethods, getSingleLogoutService, getSupportedProtocols, isAuthnRequestSigned, isSignMetadata, isWantAssertionSigned, setAssertionConsumerServiceUrl, setAuthnRequestSigned, setBlackListedSignatureSigningAlgorithms, setContactPersons, setCredentialProvider, setDefaultACSIndex, setEntityId, setMetadataUIInfos, setNameIdPolicyFormat, setRequestedAttributes, setRequestInitiatorLocation, setResponseBindingType, setSignatureAlgorithms, setSignatureReferenceDigestMethods, setSignMetadata, setSingleLogoutServiceUrl, setSupportedProtocols, setWantAssertionSigned, signMetadata
-
-
-
-
Constructor Detail
-
SAML2HttpUrlMetadataGenerator
public SAML2HttpUrlMetadataGenerator(URL metadataUrl, org.apache.http.client.HttpClient httpClient)
-
-
Method Detail
-
createMetadataResolver
protected org.opensaml.saml.metadata.resolver.impl.AbstractBatchMetadataResolver createMetadataResolver(org.springframework.core.io.Resource metadataResource) throws Exception
- Specified by:
createMetadataResolver
in classBaseSAML2MetadataGenerator
- Throws:
Exception
-
storeMetadata
public boolean storeMetadata(String metadata, org.springframework.core.io.Resource resource, boolean force) throws Exception
- Throws:
Exception
-
getMetadataUrl
public URL getMetadataUrl()
-
getRefreshDelayFactor
public float getRefreshDelayFactor()
-
setRefreshDelayFactor
public void setRefreshDelayFactor(float refreshDelayFactor)
-
getMaxRefreshDelay
public Duration getMaxRefreshDelay()
-
setMaxRefreshDelay
public void setMaxRefreshDelay(Duration maxRefreshDelay)
-
getMinRefreshDelay
public Duration getMinRefreshDelay()
-
setMinRefreshDelay
public void setMinRefreshDelay(Duration minRefreshDelay)
-
-