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
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionGets the usedJWSSerializationType
for the signatureGets the base64url encoded payload of a signatureReturns JWS signaturesReturns a list of errors occurred during the structure (schema) validationboolean
isValid()
Checks if the signature structure validation succeededvoid
setJWSSerializationType
(JWSSerializationType jwsSerializationType) Sets theJWSSerializationType
void
setPayload
(String encodedPayload) Sets the base64url encoded payload of a signaturevoid
setSignatures
(List<JWS> signatures) Sets a list of signaturesvoid
setStructuralValidationErrors
(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:
String
base64url encoded payload
-
setPayload
Sets the base64url encoded payload of a signature- Parameters:
encodedPayload
-String
base64url encoded payload
-
getSignatures
Returns JWS signatures- Returns:
- a list of
JWS
s
-
setSignatures
Sets a list of signatures- Parameters:
signatures
- a list ofJWS
-
getJWSSerializationType
Gets the usedJWSSerializationType
for 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
String
error 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 ofString
error messages
-
isValid
public boolean isValid()Checks if the signature structure validation succeeded- Returns:
- TRUE if the structure validation succeeded, FALSE otherwise
-