Class JAdESLevelBaselineLT

All Implemented Interfaces:
JAdESLevelBaselineExtension, SignatureExtension<JAdESSignatureParameters>
Direct Known Subclasses:
JAdESLevelBaselineLTA

public class JAdESLevelBaselineLT extends JAdESLevelBaselineT
Creates an LT-level of a JAdES signature
  • Constructor Details

  • Method Details

    • extendSignatures

      protected void extendSignatures(List<AdvancedSignature> signatures, JAdESSignatureParameters params)
      Description copied from class: JAdESLevelBaselineT
      Extends the signatures
      Overrides:
      extendSignatures in class JAdESLevelBaselineT
      Parameters:
      signatures - a list of AdvancedSignatures to be extended
      params - JAdESSignatureParameters the extension parameters
    • removeLastTimestampAndAnyValidationData

      protected void removeLastTimestampAndAnyValidationData(JAdESSignature jadesSignature, JAdESEtsiUHeader etsiUHeader)
      This method removes the 'tstVd' and 'anyValData' header parameters appearing in the end of the 'etsiU' unsigned property array.
      Parameters:
      jadesSignature - JAdESSignature
      etsiUHeader - JAdESEtsiUHeader
    • getXVals

      protected org.jose4j.json.internal.json_simple.JSONArray getXVals(Set<CertificateToken> certificateValuesToAdd)
      Builds and returns 'xVals' JSONArray
      Parameters:
      certificateValuesToAdd - a set of CertificateTokens to add
      Returns:
      JSONArray 'xVals' JSONArray
    • incorporateXVals

      protected void incorporateXVals(JAdESEtsiUHeader etsiUHeader, Set<CertificateToken> certificateValuesToAdd, boolean base64UrlEncoded)
      Incorporates the provided set of certificates into etsiUHeader
      Parameters:
      etsiUHeader - JAdESEtsiUHeader to update
      certificateValuesToAdd - a set of CertificateTokens to add
      base64UrlEncoded - if members of the etsiU array shall be base64UrlEncoded
    • getRVals

      protected JsonObject getRVals(Set<CRLToken> crlsToAdd, Set<OCSPToken> ocspsToAdd)
      Builds and returns 'rVals' JsonObject
      Parameters:
      crlsToAdd - a set of CRLTokens to add
      ocspsToAdd - a set of OCSPTokens to add
      Returns:
      JsonObject 'rVals' object
    • incorporateRVals

      protected void incorporateRVals(JAdESEtsiUHeader etsiUHeader, Set<CRLToken> crlsToAdd, Set<OCSPToken> ocspsToAdd, boolean base64UrlEncoded)
      Incorporates the provided set of certificates into etsiUHeader
      Parameters:
      etsiUHeader - JAdESEtsiUHeader to update
      crlsToAdd - a set of CRLTokens to add
      ocspsToAdd - a set of OCSPTokens to add
      base64UrlEncoded - if members of the etsiU array shall be base64UrlEncoded
    • incorporateTstValidationData

      protected void incorporateTstValidationData(JAdESEtsiUHeader etsiUHeader, ValidationData validationDataForInclusion, boolean base64UrlEncoded)
      This method incorporates the 'tstVD' dictionary in the signature
      Parameters:
      etsiUHeader - JAdESEtsiUHeader containing the unsigned properties list
      validationDataForInclusion - ValidationData to be included into the signature
      base64UrlEncoded - boolean value whether the etsiUHeader shall be base64url encoded or not
    • incorporateAnyValidationData

      protected void incorporateAnyValidationData(JAdESEtsiUHeader etsiUHeader, ValidationData validationDataForInclusion, boolean base64UrlEncoded)
      This method incorporates the 'anyValData' dictionary in the signature
      Parameters:
      etsiUHeader - JAdESEtsiUHeader containing the unsigned properties list
      validationDataForInclusion - ValidationData to be included into the signature
      base64UrlEncoded - boolean value whether the etsiUHeader shall be base64url encoded or not
    • incorporateValidationData

      protected void incorporateValidationData(JAdESEtsiUHeader etsiUHeader, ValidationData validationDataForInclusion, String headerName, boolean base64UrlEncoded)
      This method incorporates the validation data container in the signature
      Parameters:
      etsiUHeader - JAdESEtsiUHeader containing the unsigned properties list
      validationDataForInclusion - ValidationData to be included into the signature
      headerName - String the name of the property to be incorporated
      base64UrlEncoded - boolean value whether the etsiUHeader shall be base64url encoded or not