Class JWSConverter

java.lang.Object
eu.europa.esig.dss.jades.JWSConverter

public final class JWSConverter extends Object
Contains utils for a JAdES signature format conversion
  • Method Details

    • fromJWSCompactToJSONFlattenedSerialization

      public static DSSDocument fromJWSCompactToJSONFlattenedSerialization(DSSDocument document)
      Converts a JWS Compact Serialization to a JSON Flattened Serialization.
      Parameters:
      document - original document with a JWS Compact Serialization signature
      Returns:
      the converted signature with JSON Flattened Serialization format
    • fromJWSCompactToJSONSerialization

      public static DSSDocument fromJWSCompactToJSONSerialization(DSSDocument document)
      Converts a JWS Compact Serialization to a JSON Serialization.
      Parameters:
      document - original document with a JWS Compact Serialization signature
      Returns:
      the converted signature with JSON Serialization format
    • fromEtsiUWithBase64UrlToClearJsonIncorporation

      public static DSSDocument fromEtsiUWithBase64UrlToClearJsonIncorporation(DSSDocument document)
      Converts unprotected content of 'etsiU' header of JAdES signatures inside a document to its clear JSON incorporation form
      Parameters:
      document - DSSDocument containing Serialization (or Flattened) JAdES signatures
      Returns:
      DSSDocument containing signatures with 'etsiU' header in its clear JSON representation
    • fromEtsiUWithClearJsonToBase64UrlIncorporation

      public static DSSDocument fromEtsiUWithClearJsonToBase64UrlIncorporation(DSSDocument document)
      Converts unprotected content of 'etsiU' header of JAdES signatures inside a document to its base64Url JSON incorporation form
      Parameters:
      document - DSSDocument containing Serialization (or Flattened) JAdES signatures
      Returns:
      DSSDocument containing signatures with 'etsiU' header in its base64Url encoded representation