Class IdAttributes

java.lang.Object
se.swedenconnect.cert.extensions.data.saci.AbstractDomData
se.swedenconnect.cert.extensions.data.saci.IdAttributes

public class IdAttributes extends AbstractDomData
IdAttributes dom implementation
  • Field Details

  • Constructor Details

    • IdAttributes

      public IdAttributes(Element element, boolean strictMode) throws CertificateException
      Constructs a new IdAttributes element data object from an existing XML element
      Parameters:
      element - IdAttributes XML element
      strictMode - true to strictly enforce content requirement rules
      Throws:
      CertificateException - content requirement errors
  • Method Details

    • getAttributeMappings

      public List<AttributeMapping> getAttributeMappings()
      Get the list of attribute mappings. If no list exist, a new list is created
      Returns:
      the list of attribute mappings
    • validate

      protected void validate() throws CertificateException
      Validates the data fields of this object to assert that it meets basic content requirements
      Specified by:
      validate in class AbstractDomData
      Throws:
      CertificateException - validation errors
    • getElement

      public Element getElement(Document document)
      Gets a DOM element from the element data fields
      Specified by:
      getElement in class AbstractDomData
      Parameters:
      document - the document this element shall belong to
      Returns:
      DOM element populated with the field data of this object
    • setValuesFromElement

      protected void setValuesFromElement(Element element) throws CertificateException
      Description copied from class: AbstractDomData
      Creates an instance of this elements data from a DOM element
      Specified by:
      setValuesFromElement in class AbstractDomData
      Parameters:
      element - xml element providing content data
      Throws:
      CertificateException - content validation error