Class AffiliationDescriptorImpl

All Implemented Interfaces:
AttributeExtensibleXMLObject, XMLObject, SAMLObject, SignableSAMLObject, CacheableSAMLObject, TimeBoundSAMLObject, AffiliationDescriptor, SignableXMLObject

public class AffiliationDescriptorImpl extends AbstractSignableSAMLObject implements AffiliationDescriptor
Concrete implementation of AffiliationDescriptor.
  • Field Details

    • ownerID

      private String ownerID
      ID of the owner of this affiliation.
    • id

      private String id
      ID attribute.
    • validUntil

      private Instant validUntil
      validUntil attribute.
    • cacheDuration

      private Duration cacheDuration
      cacheDurection attribute.
    • extensions

      private Extensions extensions
      Extensions child.
    • unknownAttributes

      private final AttributeMap unknownAttributes
      "anyAttribute" attributes.
    • members

      private final XMLObjectChildrenList<AffiliateMember> members
      Members of this affiliation.
    • keyDescriptors

      private final XMLObjectChildrenList<KeyDescriptor> keyDescriptors
      Key descriptors for this role.
  • Constructor Details

    • AffiliationDescriptorImpl

      protected AffiliationDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - namespace
      elementLocalName - localname
      namespacePrefix - prefix
  • Method Details

    • getOwnerID

      public String getOwnerID()
      Gets the ID of the owner of this affiliation. The owner may, or may not, be a member of the affiliation.
      Specified by:
      getOwnerID in interface AffiliationDescriptor
      Returns:
      the ID of the owner of this affiliation
    • setOwnerID

      public void setOwnerID(String newOwnerID)
      Sets the ID of the owner of this affiliation.
      Specified by:
      setOwnerID in interface AffiliationDescriptor
      Parameters:
      newOwnerID - the ID of the owner of this affiliation
    • getID

      public String getID()
      Gets the ID of this Descriptor.
      Specified by:
      getID in interface AffiliationDescriptor
      Returns:
      the ID of this Descriptor
    • setID

      public void setID(String newID)
      Sets the ID of this descriptor.
      Specified by:
      setID in interface AffiliationDescriptor
      Parameters:
      newID - the ID of this descriptor
    • isValid

      public boolean isValid()
      Checks to see if the current time is past the validUntil time.
      Specified by:
      isValid in interface TimeBoundSAMLObject
      Returns:
      true of this descriptor is still valid otherwise false
    • getValidUntil

      public Instant getValidUntil()
      Gets the date until which this descriptor is valid.
      Specified by:
      getValidUntil in interface TimeBoundSAMLObject
      Returns:
      the date until which this descriptor is valid
    • setValidUntil

      public void setValidUntil(Instant theValidUntil)
      Sets the date until which this descriptor is valid.
      Specified by:
      setValidUntil in interface TimeBoundSAMLObject
      Parameters:
      theValidUntil - the date until which this descriptor is valid
    • getCacheDuration

      public Duration getCacheDuration()
      Gets the maximum time that this descriptor should be cached.
      Specified by:
      getCacheDuration in interface CacheableSAMLObject
      Returns:
      the maximum time that this descriptor should be cached
    • setCacheDuration

      public void setCacheDuration(Duration duration)
      Sets the maximum time that this descriptor should be cached.
      Specified by:
      setCacheDuration in interface CacheableSAMLObject
      Parameters:
      duration - the maximum time that this descriptor should be cached
    • getExtensions

      public Extensions getExtensions()
      Gets the Extensions child of this object.
      Specified by:
      getExtensions in interface AffiliationDescriptor
      Returns:
      the Extensions child of this object
    • setExtensions

      public void setExtensions(Extensions theExtensions)
      Sets the Extensions child of this object.
      Specified by:
      setExtensions in interface AffiliationDescriptor
      Parameters:
      theExtensions - the Extensions child of this object
    • getMembers

      public List<AffiliateMember> getMembers()
      Gets a list of the members of this affiliation.
      Specified by:
      getMembers in interface AffiliationDescriptor
      Returns:
      a list of affiliate members
    • getKeyDescriptors

      public List<KeyDescriptor> getKeyDescriptors()
      Gets an immutable list of KeyDescriptors for this affiliation.
      Specified by:
      getKeyDescriptors in interface AffiliationDescriptor
      Returns:
      list of KeyDescriptors for this affiliation
    • getUnknownAttributes

      public AttributeMap getUnknownAttributes()
      Gets a mutable map of the attributes. The map key is the namespace qualified name of the attribute, the map value is the value of the attribute.
      Specified by:
      getUnknownAttributes in interface AttributeExtensibleXMLObject
      Returns:
      a map of the attributes
    • getSignatureReferenceID

      public String getSignatureReferenceID()
      Gets the value of the ID attribute for this SAML object which will be used as its signature reference.
      Specified by:
      getSignatureReferenceID in interface SignableSAMLObject
      Returns:
      the value of this SAMLObject ID attribute
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Returns:
      ordered list of child elements