public class SAML2MetadataGenerator extends java.lang.Object implements SAMLMetadataGenerator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
assertionConsumerServiceUrl |
protected boolean |
authnRequestSigned |
protected java.lang.String |
binding |
protected org.opensaml.core.xml.XMLObjectBuilderFactory |
builderFactory |
protected CredentialProvider |
credentialProvider |
protected int |
defaultACSIndex |
protected java.lang.String |
entityId |
protected static org.slf4j.Logger |
logger |
protected org.opensaml.core.xml.io.MarshallerFactory |
marshallerFactory |
protected java.lang.String |
nameIdPolicyFormat |
protected java.lang.String |
requestInitiatorLocation |
protected java.lang.String |
singleLogoutServiceUrl |
protected boolean |
wantAssertionSigned |
Constructor and Description |
---|
SAML2MetadataGenerator(java.lang.String binding) |
Modifier and Type | Method and Description |
---|---|
org.opensaml.saml.saml2.metadata.EntityDescriptor |
buildEntityDescriptor() |
org.opensaml.saml.metadata.resolver.MetadataResolver |
buildMetadataResolver() |
protected java.util.Collection<org.opensaml.saml.saml2.metadata.NameIDFormat> |
buildNameIDFormat() |
protected org.opensaml.saml.saml2.metadata.SPSSODescriptor |
buildSPSSODescriptor() |
protected java.lang.String |
generateEntityDescriptorId() |
protected org.opensaml.saml.saml2.metadata.Extensions |
generateMetadataExtensions() |
protected org.opensaml.saml.saml2.metadata.AssertionConsumerService |
getAssertionConsumerService(java.lang.String binding,
int index,
boolean isDefault) |
CredentialProvider |
getCredentialProvider() |
int |
getDefaultACSIndex() |
java.lang.String |
getEntityId() |
protected org.opensaml.saml.saml2.metadata.KeyDescriptor |
getKeyDescriptor(org.opensaml.security.credential.UsageType type,
org.opensaml.xmlsec.signature.KeyInfo key) |
java.lang.String |
getMetadata() |
java.lang.String |
getNameIdPolicyFormat() |
protected org.opensaml.saml.saml2.metadata.SingleLogoutService |
getSingleLogoutService(java.lang.String binding) |
boolean |
isAuthnRequestSigned() |
boolean |
isWantAssertionSigned() |
void |
setAssertionConsumerServiceUrl(java.lang.String assertionConsumerServiceUrl) |
void |
setAuthnRequestSigned(boolean authnRequestSigned) |
void |
setCredentialProvider(CredentialProvider credentialProvider) |
void |
setDefaultACSIndex(int defaultACSIndex) |
void |
setEntityId(java.lang.String entityId) |
void |
setNameIdPolicyFormat(java.lang.String nameIdPolicyFormat) |
void |
setRequestInitiatorLocation(java.lang.String requestInitiatorLocation) |
void |
setSingleLogoutServiceUrl(java.lang.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 CredentialProvider credentialProvider
protected java.lang.String entityId
protected java.lang.String assertionConsumerServiceUrl
protected java.lang.String singleLogoutServiceUrl
protected boolean authnRequestSigned
protected boolean wantAssertionSigned
protected int defaultACSIndex
protected java.lang.String requestInitiatorLocation
protected java.lang.String binding
protected java.lang.String nameIdPolicyFormat
public final org.opensaml.saml.metadata.resolver.MetadataResolver buildMetadataResolver() throws java.lang.Exception
buildMetadataResolver
in interface SAMLMetadataGenerator
java.lang.Exception
public final java.lang.String getMetadata() throws java.lang.Exception
getMetadata
in interface SAMLMetadataGenerator
java.lang.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 java.lang.String generateEntityDescriptorId()
protected final org.opensaml.saml.saml2.metadata.SPSSODescriptor buildSPSSODescriptor()
protected final java.util.Collection<org.opensaml.saml.saml2.metadata.NameIDFormat> buildNameIDFormat()
protected final org.opensaml.saml.saml2.metadata.AssertionConsumerService getAssertionConsumerService(java.lang.String binding, int index, boolean isDefault)
protected org.opensaml.saml.saml2.metadata.SingleLogoutService getSingleLogoutService(java.lang.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 java.lang.String getEntityId()
public final void setEntityId(java.lang.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(java.lang.String assertionConsumerServiceUrl)
public final void setSingleLogoutServiceUrl(java.lang.String singleLogoutServiceUrl)
public final void setRequestInitiatorLocation(java.lang.String requestInitiatorLocation)
public java.lang.String getNameIdPolicyFormat()
public void setNameIdPolicyFormat(java.lang.String nameIdPolicyFormat)
Copyright © 2018. All Rights Reserved.