Class JAdESEtsiUHeader

java.lang.Object
eu.europa.esig.dss.jades.validation.JAdESEtsiUHeader
All Implemented Interfaces:
Serializable

public class JAdESEtsiUHeader extends Object
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()
    • getAttributes

      public List<EtsiUComponent> getAttributes()
    • 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 boolean removeLastComponent(String... headerName)
      Removes the last 'etsiU' item if the name matches to the given headerName
      Parameters:
      headerName - of the 'etsiU' entry to remove
      Returns:
      boolean value whether the component has been removed
    • replaceComponent

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