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

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

      @Nullable private String id
      ID attribute.
    • validUntil

      @Nullable private Instant validUntil
      validUntil attribute.
    • cacheDuration

      @Nullable private Duration cacheDuration
      cacheDurection attribute.
    • extensions

      @Nullable private Extensions extensions
      Extensions child.
    • unknownAttributes

      @Nonnull private final AttributeMap unknownAttributes
      "anyAttribute" attributes.
    • members

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

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

    • AffiliationDescriptorImpl

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

    • getOwnerID

      @Nullable 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(@Nullable 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

      @Nullable 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(@Nullable 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

      @Nullable 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(@Nullable 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

      @Nullable 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(@Nullable 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

      @Nullable 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(@Nullable Extensions theExtensions)
      Sets the Extensions child of this object.
      Specified by:
      setExtensions in interface AffiliationDescriptor
      Parameters:
      theExtensions - the Extensions child of this object
    • getMembers

      @Nonnull @Live 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

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

      @Nonnull 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

      @Nullable 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

      @Nullable @NotLive @Unmodifiable 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