public class SAML2MetadataGenerator extends Object implements SAMLMetadataGenerator
Constructor and Description |
---|
SAML2MetadataGenerator() |
Modifier and Type | Method and Description |
---|---|
org.opensaml.saml.saml2.metadata.EntityDescriptor |
buildEntityDescriptor() |
org.opensaml.saml.metadata.resolver.MetadataResolver |
buildMetadataResolver(org.springframework.core.io.Resource metadataResource) |
protected Collection<org.opensaml.saml.saml2.metadata.NameIDFormat> |
buildNameIDFormat() |
protected org.opensaml.saml.saml2.metadata.SPSSODescriptor |
buildSPSSODescriptor() |
protected org.opensaml.saml.saml2.metadata.Extensions |
generateMetadataExtensions() |
protected org.opensaml.saml.saml2.metadata.AssertionConsumerService |
getAssertionConsumerService(String binding,
int index,
boolean isDefault) |
List<String> |
getBlackListedSignatureSigningAlgorithms() |
CredentialProvider |
getCredentialProvider() |
int |
getDefaultACSIndex() |
String |
getEntityId() |
protected org.opensaml.saml.saml2.metadata.KeyDescriptor |
getKeyDescriptor(org.opensaml.security.credential.UsageType type,
org.opensaml.xmlsec.signature.KeyInfo key) |
String |
getMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor entityDescriptor) |
String |
getNameIdPolicyFormat() |
List<SAML2ServiceProvicerRequestedAttribute> |
getRequestedAttributes() |
List<String> |
getSignatureAlgorithms() |
List<String> |
getSignatureReferenceDigestMethods() |
protected org.opensaml.saml.saml2.metadata.SingleLogoutService |
getSingleLogoutService(String binding) |
boolean |
isAuthnRequestSigned() |
boolean |
isSignMetadata() |
boolean |
isWantAssertionSigned() |
void |
setAssertionConsumerServiceUrl(String assertionConsumerServiceUrl) |
void |
setAuthnRequestSigned(boolean authnRequestSigned) |
void |
setBlackListedSignatureSigningAlgorithms(List<String> blackListedSignatureSigningAlgorithms) |
void |
setCredentialProvider(CredentialProvider credentialProvider) |
void |
setDefaultACSIndex(int defaultACSIndex) |
void |
setEntityId(String entityId) |
void |
setNameIdPolicyFormat(String nameIdPolicyFormat) |
void |
setRequestedAttributes(List<SAML2ServiceProvicerRequestedAttribute> requestedAttributes) |
void |
setRequestInitiatorLocation(String requestInitiatorLocation) |
void |
setResponseBindingType(String responseBindingType) |
void |
setSignatureAlgorithms(List<String> signatureAlgorithms) |
void |
setSignatureReferenceDigestMethods(List<String> signatureReferenceDigestMethods) |
void |
setSignMetadata(boolean signMetadata) |
void |
setSingleLogoutServiceUrl(String singleLogoutServiceUrl) |
void |
setWantAssertionSigned(boolean wantAssertionSigned) |
protected void |
signMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor) |
protected static final org.slf4j.Logger logger
protected final org.opensaml.core.xml.XMLObjectBuilderFactory builderFactory
protected final org.opensaml.core.xml.io.MarshallerFactory marshallerFactory
protected final org.opensaml.xmlsec.algorithm.AlgorithmRegistry globalAlgorithmRegistry
protected CredentialProvider credentialProvider
protected String entityId
protected String assertionConsumerServiceUrl
protected String responseBindingType
protected String singleLogoutServiceUrl
protected boolean authnRequestSigned
protected boolean wantAssertionSigned
protected boolean signMetadata
protected int defaultACSIndex
protected String requestInitiatorLocation
protected String nameIdPolicyFormat
protected List<SAML2ServiceProvicerRequestedAttribute> requestedAttributes
protected org.opensaml.xmlsec.SignatureSigningConfiguration defaultSignatureSigningConfiguration
public org.opensaml.saml.metadata.resolver.MetadataResolver buildMetadataResolver(org.springframework.core.io.Resource metadataResource) throws Exception
buildMetadataResolver
in interface SAMLMetadataGenerator
Exception
public String getMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor entityDescriptor) throws Exception
getMetadata
in interface SAMLMetadataGenerator
Exception
public org.opensaml.saml.saml2.metadata.EntityDescriptor buildEntityDescriptor()
buildEntityDescriptor
in interface SAMLMetadataGenerator
protected void signMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor)
protected org.opensaml.saml.saml2.metadata.Extensions generateMetadataExtensions()
protected org.opensaml.saml.saml2.metadata.SPSSODescriptor buildSPSSODescriptor()
protected Collection<org.opensaml.saml.saml2.metadata.NameIDFormat> buildNameIDFormat()
protected org.opensaml.saml.saml2.metadata.AssertionConsumerService getAssertionConsumerService(String binding, int index, boolean isDefault)
protected org.opensaml.saml.saml2.metadata.SingleLogoutService getSingleLogoutService(String binding)
protected org.opensaml.saml.saml2.metadata.KeyDescriptor getKeyDescriptor(org.opensaml.security.credential.UsageType type, org.opensaml.xmlsec.signature.KeyInfo key)
public CredentialProvider getCredentialProvider()
public final void setCredentialProvider(CredentialProvider credentialProvider)
public String getEntityId()
public final void setEntityId(String entityId)
public boolean isAuthnRequestSigned()
public final void setAuthnRequestSigned(boolean authnRequestSigned)
public boolean isWantAssertionSigned()
public void setWantAssertionSigned(boolean wantAssertionSigned)
public boolean isSignMetadata()
public void setSignMetadata(boolean signMetadata)
public int getDefaultACSIndex()
public void setDefaultACSIndex(int defaultACSIndex)
public final void setAssertionConsumerServiceUrl(String assertionConsumerServiceUrl)
public void setResponseBindingType(String responseBindingType)
public final void setSingleLogoutServiceUrl(String singleLogoutServiceUrl)
public final void setRequestInitiatorLocation(String requestInitiatorLocation)
public String getNameIdPolicyFormat()
public void setNameIdPolicyFormat(String nameIdPolicyFormat)
public List<SAML2ServiceProvicerRequestedAttribute> getRequestedAttributes()
public void setRequestedAttributes(List<SAML2ServiceProvicerRequestedAttribute> requestedAttributes)
public List<String> getBlackListedSignatureSigningAlgorithms()
public void setBlackListedSignatureSigningAlgorithms(List<String> blackListedSignatureSigningAlgorithms)
Copyright © 2019. All rights reserved.