Package eu.europa.esig.dss.jades
Class JWSConverter
java.lang.Object
eu.europa.esig.dss.jades.JWSConverter
Contains utils for a JAdES signature format conversion
-
Method Summary
Modifier and TypeMethodDescriptionstatic DSSDocument
Converts unprotected content of 'etsiU' header of JAdES signatures inside a document to its clear JSON incorporation formstatic DSSDocument
Converts unprotected content of 'etsiU' header of JAdES signatures inside a document to its base64Url JSON incorporation formstatic DSSDocument
Converts a JWS Compact Serialization to a JSON Flattened Serialization.static DSSDocument
fromJWSCompactToJSONSerialization
(DSSDocument document) Converts a JWS Compact Serialization to a JSON Serialization.
-
Method Details
-
fromJWSCompactToJSONFlattenedSerialization
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
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
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
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
-