Class JAdESEtsiUHeader

java.lang.Object
eu.europa.esig.dss.jades.validation.JAdESEtsiUHeader
All Implemented Interfaces:
SignatureProperties<EtsiUComponent>, Serializable

public class JAdESEtsiUHeader extends Object implements SignatureProperties<EtsiUComponent>
Represents the list of components present inside the unprotected 'etsiU' header
See Also:
  • Constructor Details

    • JAdESEtsiUHeader

      public JAdESEtsiUHeader(JWS jws)
      The default constructor
      Parameters:
      jws - JWS signature
  • Method Details

    • isExist

      public boolean isExist()
      Description copied from interface: SignatureProperties
      Checks if "unsigned-signature-properties" exists and can be processed
      Specified by:
      isExist in interface SignatureProperties<EtsiUComponent>
      Returns:
      TRUE if the element exists, FALSE otherwise
    • getAttributes

      public List<EtsiUComponent> getAttributes()
      Description copied from interface: SignatureProperties
      Returns a list of children contained in the element
      Specified by:
      getAttributes in interface SignatureProperties<EtsiUComponent>
      Returns:
      list of SignatureAttributes
    • addComponent

      public void addComponent(String headerName, Object value, boolean base64UrlEncoded)
      Adds a new entry to the 'etsiU' array
      Parameters:
      headerName - String representing the name of the 'etsiU' entry
      value - represents a value of the 'etsiU' entry
      base64UrlEncoded - defines if the entry shall be incorporated in its corresponding base64url representation
    • removeComponent

      public void removeComponent(String headerName)
      Removes the 'etsiU' components with the given headerName
      Parameters:
      headerName - of the 'etsiU' entry to remove
    • removeLastComponent

      public void removeLastComponent(String headerName)
      Removes the last 'etsiU' item if the name matches to the given headerName
      Parameters:
      headerName - of the 'etsiU' entry to remove
    • replaceComponent

      public void replaceComponent(EtsiUComponent attribute)
      Replaces the given attribute within the 'etsiU' header array
      Parameters:
      attribute - EtsiUComponent to replace