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>
additionalMetadata
Additional metadata locations for this entity.private AffiliationDescriptor
affiliationDescriptor
Affiliatition descriptor for this entity.private Duration
cacheDuration
cacheDurection attribute.private XMLObjectChildrenList<ContactPerson>
contactPersons
Contact persons for this entity.private String
entityID
Entity ID of this Entity.private Extensions
extensions
Extensions child.private String
id
ID attribute.private Organization
organization
Organization the administers this entity.private IndexedXMLObjectChildrenList<RoleDescriptor>
roleDescriptors
Role descriptors for this entity.private AttributeMap
unknownAttributes
"anyAttribute" attributes.private Instant
validUntil
validUntil 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 protected
EntityDescriptorImpl(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:
getEntityID
in interfaceEntityDescriptor
-
setEntityID
public void setEntityID(String newId)
- Specified by:
setEntityID
in interfaceEntityDescriptor
-
getID
public String getID()
- Specified by:
getID
in interfaceEntityDescriptor
-
setID
public void setID(String newID)
- Specified by:
setID
in interfaceEntityDescriptor
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfaceTimeBoundSAMLObject
-
getValidUntil
public Instant getValidUntil()
- Specified by:
getValidUntil
in interfaceTimeBoundSAMLObject
-
setValidUntil
public void setValidUntil(Instant newValidUntil)
- Specified by:
setValidUntil
in interfaceTimeBoundSAMLObject
-
getCacheDuration
public Duration getCacheDuration()
- Specified by:
getCacheDuration
in interfaceCacheableSAMLObject
-
setCacheDuration
public void setCacheDuration(Duration duration)
- Specified by:
setCacheDuration
in interfaceCacheableSAMLObject
-
getExtensions
public Extensions getExtensions()
- Specified by:
getExtensions
in interfaceEntityDescriptor
-
setExtensions
public void setExtensions(Extensions newExtensions)
- Specified by:
setExtensions
in interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors()
- Specified by:
getRoleDescriptors
in interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors(QName typeOrName)
- Specified by:
getRoleDescriptors
in interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors(QName type, String supportedProtocol)
- Specified by:
getRoleDescriptors
in interfaceEntityDescriptor
-
getIDPSSODescriptor
public IDPSSODescriptor getIDPSSODescriptor(String supportedProtocol)
- Specified by:
getIDPSSODescriptor
in interfaceEntityDescriptor
-
getSPSSODescriptor
public SPSSODescriptor getSPSSODescriptor(String supportedProtocol)
- Specified by:
getSPSSODescriptor
in interfaceEntityDescriptor
-
getAuthnAuthorityDescriptor
public AuthnAuthorityDescriptor getAuthnAuthorityDescriptor(String supportedProtocol)
- Specified by:
getAuthnAuthorityDescriptor
in interfaceEntityDescriptor
-
getAttributeAuthorityDescriptor
public AttributeAuthorityDescriptor getAttributeAuthorityDescriptor(String supportedProtocol)
- Specified by:
getAttributeAuthorityDescriptor
in interfaceEntityDescriptor
-
getPDPDescriptor
public PDPDescriptor getPDPDescriptor(String supportedProtocol)
- Specified by:
getPDPDescriptor
in interfaceEntityDescriptor
-
getAffiliationDescriptor
public AffiliationDescriptor getAffiliationDescriptor()
- Specified by:
getAffiliationDescriptor
in interfaceEntityDescriptor
-
setAffiliationDescriptor
public void setAffiliationDescriptor(AffiliationDescriptor descriptor)
- Specified by:
setAffiliationDescriptor
in interfaceEntityDescriptor
-
getOrganization
public Organization getOrganization()
- Specified by:
getOrganization
in interfaceEntityDescriptor
-
setOrganization
public void setOrganization(Organization newOrganization)
- Specified by:
setOrganization
in interfaceEntityDescriptor
-
getContactPersons
public List<ContactPerson> getContactPersons()
- Specified by:
getContactPersons
in interfaceEntityDescriptor
-
getAdditionalMetadataLocations
public List<AdditionalMetadataLocation> getAdditionalMetadataLocations()
- Specified by:
getAdditionalMetadataLocations
in interfaceEntityDescriptor
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributes
in interfaceAttributeExtensibleXMLObject
-
getSignatureReferenceID
public String getSignatureReferenceID()
- Specified by:
getSignatureReferenceID
in interfaceSignableSAMLObject
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildren
in interfaceXMLObject
-
-