Package org.pac4j.saml.metadata
Class BaseSAML2MetadataGenerator
java.lang.Object
org.pac4j.saml.metadata.BaseSAML2MetadataGenerator
- All Implemented Interfaces:
SAML2MetadataGenerator
- Direct Known Subclasses:
SAML2FileSystemMetadataGenerator,SAML2HttpUrlMetadataGenerator,SAML2JdbcMetadataGenerator,SAML2MongoMetadataGenerator
Generates metadata object with standard values and overridden user defined values.
- Since:
- 4.0.1
- Author:
- Misagh Moayyed
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected final org.opensaml.core.xml.XMLObjectBuilderFactoryprotected CredentialProviderprotected intprotected org.opensaml.xmlsec.SignatureSigningConfigurationprotected Stringprotected final org.opensaml.xmlsec.algorithm.AlgorithmRegistryprotected static final org.slf4j.Loggerprotected final org.opensaml.core.xml.io.MarshallerFactoryprotected Stringprotected List<SAML2ServiceProviderRequestedAttribute>protected Stringprotected Stringprotected booleanprotected Stringprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.metadata.EntityDescriptororg.opensaml.saml.metadata.resolver.MetadataResolverprotected Collection<org.opensaml.saml.saml2.metadata.NameIDFormat>protected org.opensaml.saml.saml2.metadata.SPSSODescriptorprotected abstract org.opensaml.saml.metadata.resolver.impl.AbstractMetadataResolverprotected org.opensaml.saml.saml2.metadata.Extensionsprotected org.opensaml.saml.saml2.metadata.AssertionConsumerServicegetAssertionConsumerService(String binding, int index, boolean isDefault) intprotected org.opensaml.saml.saml2.metadata.KeyDescriptorgetKeyDescriptor(org.opensaml.security.credential.UsageType type, org.opensaml.xmlsec.signature.KeyInfo key) getMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor entityDescriptor) protected org.opensaml.saml.saml2.metadata.SingleLogoutServicegetSingleLogoutService(String binding) booleanbooleanbooleanfinal voidsetAssertionConsumerServiceUrl(String assertionConsumerServiceUrl) final voidsetAuthnRequestSigned(boolean authnRequestSigned) voidsetBlackListedSignatureSigningAlgorithms(List<String> blackListedSignatureSigningAlgorithms) voidsetContactPersons(List<SAML2MetadataContactPerson> contactPersons) final voidsetCredentialProvider(CredentialProvider credentialProvider) voidsetDefaultACSIndex(int defaultACSIndex) final voidsetEntityId(String entityId) voidsetMetadataSigner(SAML2MetadataSigner metadataSigner) voidsetMetadataUIInfos(List<SAML2MetadataUIInfo> metadataUIInfos) voidsetNameIdPolicyFormat(String nameIdPolicyFormat) voidsetRequestedAttributes(List<SAML2ServiceProviderRequestedAttribute> requestedAttributes) final voidsetRequestInitiatorLocation(String requestInitiatorLocation) voidsetResponseBindingType(String responseBindingType) voidsetSignatureAlgorithms(List<String> signatureAlgorithms) voidsetSignatureReferenceDigestMethods(List<String> signatureReferenceDigestMethods) voidsetSignMetadata(boolean signMetadata) final voidsetSingleLogoutServiceUrl(String singleLogoutServiceUrl) voidsetSupportedProtocols(List<String> supportedProtocols) voidsetWantAssertionSigned(boolean wantAssertionSigned) protected voidsignMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pac4j.saml.metadata.SAML2MetadataGenerator
storeMetadata
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
builderFactory
protected final org.opensaml.core.xml.XMLObjectBuilderFactory builderFactory -
marshallerFactory
protected final org.opensaml.core.xml.io.MarshallerFactory marshallerFactory -
globalAlgorithmRegistry
protected final org.opensaml.xmlsec.algorithm.AlgorithmRegistry globalAlgorithmRegistry -
credentialProvider
-
entityId
-
assertionConsumerServiceUrl
-
responseBindingType
-
singleLogoutServiceUrl
-
authnRequestSigned
protected boolean authnRequestSigned -
wantAssertionSigned
protected boolean wantAssertionSigned -
signMetadata
protected boolean signMetadata -
defaultACSIndex
protected int defaultACSIndex -
requestInitiatorLocation
-
nameIdPolicyFormat
-
requestedAttributes
-
defaultSignatureSigningConfiguration
protected org.opensaml.xmlsec.SignatureSigningConfiguration defaultSignatureSigningConfiguration -
blackListedSignatureSigningAlgorithms
-
signatureAlgorithms
-
signatureReferenceDigestMethods
-
-
Constructor Details
-
BaseSAML2MetadataGenerator
public BaseSAML2MetadataGenerator()
-
-
Method Details
-
buildMetadataResolver
public org.opensaml.saml.metadata.resolver.MetadataResolver buildMetadataResolver() throws Exception- Specified by:
buildMetadataResolverin interfaceSAML2MetadataGenerator- Throws:
Exception
-
createMetadataResolver
protected abstract org.opensaml.saml.metadata.resolver.impl.AbstractMetadataResolver createMetadataResolver() throws Exception- Throws:
Exception
-
getMetadata
public String getMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor entityDescriptor) throws Exception - Specified by:
getMetadatain interfaceSAML2MetadataGenerator- Throws:
Exception
-
buildEntityDescriptor
public org.opensaml.saml.saml2.metadata.EntityDescriptor buildEntityDescriptor()- Specified by:
buildEntityDescriptorin interfaceSAML2MetadataGenerator
-
signMetadata
protected void signMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor) -
generateMetadataExtensions
protected org.opensaml.saml.saml2.metadata.Extensions generateMetadataExtensions() -
buildSPSSODescriptor
protected org.opensaml.saml.saml2.metadata.SPSSODescriptor buildSPSSODescriptor() -
buildNameIDFormat
-
getAssertionConsumerService
protected org.opensaml.saml.saml2.metadata.AssertionConsumerService getAssertionConsumerService(String binding, int index, boolean isDefault) -
getSingleLogoutService
protected org.opensaml.saml.saml2.metadata.SingleLogoutService getSingleLogoutService(String binding) -
getKeyDescriptor
protected org.opensaml.saml.saml2.metadata.KeyDescriptor getKeyDescriptor(org.opensaml.security.credential.UsageType type, org.opensaml.xmlsec.signature.KeyInfo key) -
getCredentialProvider
-
setCredentialProvider
-
getEntityId
-
setEntityId
-
isAuthnRequestSigned
public boolean isAuthnRequestSigned() -
setAuthnRequestSigned
public final void setAuthnRequestSigned(boolean authnRequestSigned) -
isWantAssertionSigned
public boolean isWantAssertionSigned() -
setWantAssertionSigned
public void setWantAssertionSigned(boolean wantAssertionSigned) -
isSignMetadata
public boolean isSignMetadata() -
setSignMetadata
public void setSignMetadata(boolean signMetadata) -
getDefaultACSIndex
public int getDefaultACSIndex() -
setDefaultACSIndex
public void setDefaultACSIndex(int defaultACSIndex) -
setAssertionConsumerServiceUrl
-
setResponseBindingType
-
setSingleLogoutServiceUrl
-
setRequestInitiatorLocation
-
getNameIdPolicyFormat
-
setNameIdPolicyFormat
-
getRequestedAttributes
-
setRequestedAttributes
public void setRequestedAttributes(List<SAML2ServiceProviderRequestedAttribute> requestedAttributes) -
getBlackListedSignatureSigningAlgorithms
-
setBlackListedSignatureSigningAlgorithms
-
getSignatureAlgorithms
-
setSignatureAlgorithms
-
getSignatureReferenceDigestMethods
-
setSignatureReferenceDigestMethods
-
getSupportedProtocols
-
setSupportedProtocols
-
getContactPersons
-
setContactPersons
-
getMetadataUIInfos
-
setMetadataUIInfos
-
getMetadataSigner
-
setMetadataSigner
-