Package eu.europa.esig.dss.jades
Class JWSJsonSerializationObject
java.lang.Object
eu.europa.esig.dss.jades.JWSJsonSerializationObject
- All Implemented Interfaces:
Serializable
A container with JWS signature attributes
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionGets the usedJWSSerializationTypefor the signatureGets the base64url encoded payload of a signatureReturns JWS signaturesReturns 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()Default constructor instantiating object with null values
-
-
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
Returns JWS signatures- Returns:
- a list of
JWSs
-
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
-