public class SAML2MetadataGenerator extends Object implements SAMLMetadataGenerator
Modifier and Type | Field and Description |
---|---|
protected String |
assertionConsumerServiceUrl |
protected boolean |
authnRequestSigned |
protected List<String> |
blackListedSignatureSigningAlgorithms |
protected org.opensaml.core.xml.XMLObjectBuilderFactory |
builderFactory |
protected CredentialProvider |
credentialProvider |
protected int |
defaultACSIndex |
protected org.opensaml.xmlsec.SignatureSigningConfiguration |
defaultSignatureSigningConfiguration |
protected String |
entityId |
protected org.opensaml.xmlsec.algorithm.AlgorithmRegistry |
globalAlgorithmRegistry |
protected static org.slf4j.Logger |
logger |
protected org.opensaml.core.xml.io.MarshallerFactory |
marshallerFactory |
protected String |
nameIdPolicyFormat |
protected List<SAML2ServiceProvicerRequestedAttribute> |
requestedAttributes |
protected String |
requestInitiatorLocation |
protected List<String> |
signatureAlgorithms |
protected List<String> |
signatureReferenceDigestMethods |
protected String |
singleLogoutServiceUrl |
protected boolean |
wantAssertionSigned |
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 |
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 |
setSignatureAlgorithms(List<String> signatureAlgorithms) |
void |
setSignatureReferenceDigestMethods(List<String> signatureReferenceDigestMethods) |
void |
setSingleLogoutServiceUrl(String singleLogoutServiceUrl) |
void |
setWantAssertionSigned(boolean wantAssertionSigned) |
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 singleLogoutServiceUrl
protected boolean authnRequestSigned
protected boolean wantAssertionSigned
protected int defaultACSIndex
protected String requestInitiatorLocation
protected String nameIdPolicyFormat
protected List<SAML2ServiceProvicerRequestedAttribute> requestedAttributes
protected org.opensaml.xmlsec.SignatureSigningConfiguration defaultSignatureSigningConfiguration
public final org.opensaml.saml.metadata.resolver.MetadataResolver buildMetadataResolver(org.springframework.core.io.Resource metadataResource) throws Exception
buildMetadataResolver
in interface SAMLMetadataGenerator
Exception
public final String getMetadata(org.opensaml.saml.saml2.metadata.EntityDescriptor entityDescriptor) throws Exception
getMetadata
in interface SAMLMetadataGenerator
Exception
public final org.opensaml.saml.saml2.metadata.EntityDescriptor buildEntityDescriptor()
buildEntityDescriptor
in interface SAMLMetadataGenerator
protected final org.opensaml.saml.saml2.metadata.Extensions generateMetadataExtensions()
protected final org.opensaml.saml.saml2.metadata.SPSSODescriptor buildSPSSODescriptor()
protected final 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 final 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 int getDefaultACSIndex()
public void setDefaultACSIndex(int defaultACSIndex)
public final void setAssertionConsumerServiceUrl(String assertionConsumerServiceUrl)
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.