Package eu.europa.esig.dss.jades
Class JWSJsonSerializationObject
java.lang.Object
eu.europa.esig.dss.jades.JWSJsonSerializationObject
public class JWSJsonSerializationObject extends Object
A container with JWS signature attributes
-
Constructor Summary
Constructors Constructor Description JWSJsonSerializationObject() -
Method Summary
Modifier and Type Method Description JWSSerializationTypegetJWSSerializationType()Gets the usedJWSSerializationTypefor the signatureStringgetPayload()Gets the base64url encoded payload of a signatureList<JWS>getSignatures()List<String>getStructuralValidationErrors()Returns a list of errors occurred during the structure (schema) validationbooleanisValid()Checks if the signature structure validation succeededvoidsetJWSSerializationType(JWSSerializationType jwsSerializationType)Sets theJWSSerializationTypevoidsetPayload(String encodedPayload)Sets the base64url encoded payload of a signaturevoidsetSignatures(List<JWS> signatures)Sets a list of signaturesvoidsetStructuralValidationErrors(List<String> structuralValidationErrors)Sets a list of errors occurred during the structure (schema) validation
-
Constructor Details
-
JWSJsonSerializationObject
public JWSJsonSerializationObject()
-
-
Method Details
-
getPayload
Gets the base64url encoded payload of a signature- Returns:
Stringbase64url encoded payload
-
setPayload
Sets the base64url encoded payload of a signature- Parameters:
encodedPayload-Stringbase64url encoded payload
-
getSignatures
-
setSignatures
Sets a list of signatures- Parameters:
signatures- a list ofJWS
-
getJWSSerializationType
Gets the usedJWSSerializationTypefor the signature- Returns:
JWSSerializationType
-
setJWSSerializationType
Sets theJWSSerializationType- Parameters:
jwsSerializationType-JWSSerializationType
-
getStructuralValidationErrors
Returns a list of errors occurred during the structure (schema) validation- Returns:
- a list of
Stringerror messages, empty list if no errors have been found
-
setStructuralValidationErrors
Sets a list of errors occurred during the structure (schema) validation- Parameters:
structuralValidationErrors- a list ofStringerror messages
-
isValid
public boolean isValid()Checks if the signature structure validation succeeded- Returns:
- TRUE if the structure validation succeeded, FALSE otherwise
-