Class EntityDescriptorImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.xmlsec.signature.AbstractSignableXMLObject
-
- org.opensaml.saml.common.AbstractSignableSAMLObject
-
- org.opensaml.saml.saml2.metadata.impl.EntityDescriptorImpl
-
- All Implemented Interfaces:
AttributeExtensibleXMLObject,XMLObject,SAMLObject,SignableSAMLObject,CacheableSAMLObject,TimeBoundSAMLObject,EntityDescriptor,SignableXMLObject
public class EntityDescriptorImpl extends AbstractSignableSAMLObject implements EntityDescriptor
Concretate implementation ofEntitiesDescriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private XMLObjectChildrenList<AdditionalMetadataLocation>additionalMetadataAdditional metadata locations for this entity.private AffiliationDescriptoraffiliationDescriptorAffiliatition descriptor for this entity.private DurationcacheDurationcacheDurection attribute.private XMLObjectChildrenList<ContactPerson>contactPersonsContact persons for this entity.private StringentityIDEntity ID of this Entity.private ExtensionsextensionsExtensions child.private StringidID attribute.private OrganizationorganizationOrganization the administers this entity.private IndexedXMLObjectChildrenList<RoleDescriptor>roleDescriptorsRole descriptors for this entity.private AttributeMapunknownAttributes"anyAttribute" attributes.private InstantvalidUntilvalidUntil attribute.-
Fields inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME
-
Fields inherited from interface org.opensaml.saml.saml2.metadata.EntityDescriptor
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ELEMENT_QNAME, ENTITY_ID_ATTRIB_NAME, ID_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
Fields inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntityDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
-
Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignature
-
Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSigned
-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignature
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Field Detail
-
entityID
private String entityID
Entity ID of this Entity.
-
id
private String id
ID attribute.
-
validUntil
private Instant validUntil
validUntil attribute.
-
cacheDuration
private Duration cacheDuration
cacheDurection attribute.
-
extensions
private Extensions extensions
Extensions child.
-
roleDescriptors
private final IndexedXMLObjectChildrenList<RoleDescriptor> roleDescriptors
Role descriptors for this entity.
-
affiliationDescriptor
private AffiliationDescriptor affiliationDescriptor
Affiliatition descriptor for this entity.
-
organization
private Organization organization
Organization the administers this entity.
-
contactPersons
private final XMLObjectChildrenList<ContactPerson> contactPersons
Contact persons for this entity.
-
additionalMetadata
private final XMLObjectChildrenList<AdditionalMetadataLocation> additionalMetadata
Additional metadata locations for this entity.
-
unknownAttributes
private final AttributeMap unknownAttributes
"anyAttribute" attributes.
-
-
Constructor Detail
-
EntityDescriptorImpl
protected EntityDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Detail
-
getEntityID
public String getEntityID()
- Specified by:
getEntityIDin interfaceEntityDescriptor
-
setEntityID
public void setEntityID(String newId)
- Specified by:
setEntityIDin interfaceEntityDescriptor
-
getID
public String getID()
- Specified by:
getIDin interfaceEntityDescriptor
-
setID
public void setID(String newID)
- Specified by:
setIDin interfaceEntityDescriptor
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceTimeBoundSAMLObject
-
getValidUntil
public Instant getValidUntil()
- Specified by:
getValidUntilin interfaceTimeBoundSAMLObject
-
setValidUntil
public void setValidUntil(Instant newValidUntil)
- Specified by:
setValidUntilin interfaceTimeBoundSAMLObject
-
getCacheDuration
public Duration getCacheDuration()
- Specified by:
getCacheDurationin interfaceCacheableSAMLObject
-
setCacheDuration
public void setCacheDuration(Duration duration)
- Specified by:
setCacheDurationin interfaceCacheableSAMLObject
-
getExtensions
public Extensions getExtensions()
- Specified by:
getExtensionsin interfaceEntityDescriptor
-
setExtensions
public void setExtensions(Extensions newExtensions)
- Specified by:
setExtensionsin interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors()
- Specified by:
getRoleDescriptorsin interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors(QName typeOrName)
- Specified by:
getRoleDescriptorsin interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors(QName type, String supportedProtocol)
- Specified by:
getRoleDescriptorsin interfaceEntityDescriptor
-
getIDPSSODescriptor
public IDPSSODescriptor getIDPSSODescriptor(String supportedProtocol)
- Specified by:
getIDPSSODescriptorin interfaceEntityDescriptor
-
getSPSSODescriptor
public SPSSODescriptor getSPSSODescriptor(String supportedProtocol)
- Specified by:
getSPSSODescriptorin interfaceEntityDescriptor
-
getAuthnAuthorityDescriptor
public AuthnAuthorityDescriptor getAuthnAuthorityDescriptor(String supportedProtocol)
- Specified by:
getAuthnAuthorityDescriptorin interfaceEntityDescriptor
-
getAttributeAuthorityDescriptor
public AttributeAuthorityDescriptor getAttributeAuthorityDescriptor(String supportedProtocol)
- Specified by:
getAttributeAuthorityDescriptorin interfaceEntityDescriptor
-
getPDPDescriptor
public PDPDescriptor getPDPDescriptor(String supportedProtocol)
- Specified by:
getPDPDescriptorin interfaceEntityDescriptor
-
getAffiliationDescriptor
public AffiliationDescriptor getAffiliationDescriptor()
- Specified by:
getAffiliationDescriptorin interfaceEntityDescriptor
-
setAffiliationDescriptor
public void setAffiliationDescriptor(AffiliationDescriptor descriptor)
- Specified by:
setAffiliationDescriptorin interfaceEntityDescriptor
-
getOrganization
public Organization getOrganization()
- Specified by:
getOrganizationin interfaceEntityDescriptor
-
setOrganization
public void setOrganization(Organization newOrganization)
- Specified by:
setOrganizationin interfaceEntityDescriptor
-
getContactPersons
public List<ContactPerson> getContactPersons()
- Specified by:
getContactPersonsin interfaceEntityDescriptor
-
getAdditionalMetadataLocations
public List<AdditionalMetadataLocation> getAdditionalMetadataLocations()
- Specified by:
getAdditionalMetadataLocationsin interfaceEntityDescriptor
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-
getSignatureReferenceID
public String getSignatureReferenceID()
- Specified by:
getSignatureReferenceIDin interfaceSignableSAMLObject
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
-