Class JWSJsonSerializationObject

java.lang.Object
eu.europa.esig.dss.jades.JWSJsonSerializationObject
All Implemented Interfaces:
Serializable

public class JWSJsonSerializationObject extends Object implements Serializable
A container with JWS signature attributes
See Also:
  • Constructor Details

    • JWSJsonSerializationObject

      public JWSJsonSerializationObject()
      Default constructor instantiating object with null values
  • Method Details

    • getPayload

      public String getPayload()
      Gets the base64url encoded payload of a signature
      Returns:
      String base64url encoded payload
    • setPayload

      public void setPayload(String encodedPayload)
      Sets the base64url encoded payload of a signature
      Parameters:
      encodedPayload - String base64url encoded payload
    • getSignatures

      public List<JWS> getSignatures()
      Returns JWS signatures
      Returns:
      a list of JWSs
    • setSignatures

      public void setSignatures(List<JWS> signatures)
      Sets a list of signatures
      Parameters:
      signatures - a list of JWS
    • getJWSSerializationType

      public JWSSerializationType getJWSSerializationType()
      Gets the used JWSSerializationType for the signature
      Returns:
      JWSSerializationType
    • setJWSSerializationType

      public void setJWSSerializationType(JWSSerializationType jwsSerializationType)
      Sets the JWSSerializationType
      Parameters:
      jwsSerializationType - JWSSerializationType
    • getStructuralValidationErrors

      public List<String> 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

      public void setStructuralValidationErrors(List<String> structuralValidationErrors)
      Sets a list of errors occurred during the structure (schema) validation
      Parameters:
      structuralValidationErrors - a list of String error messages
    • isValid

      public boolean isValid()
      Checks if the signature structure validation succeeded
      Returns:
      TRUE if the structure validation succeeded, FALSE otherwise