Class SignatureBytesWrapper

java.lang.Object
br.ufsc.labsec.signature.wrappers.SignatureWrapper<byte[]>
br.ufsc.labsec.signature.wrappers.SignatureBytesWrapper

public class SignatureBytesWrapper
extends SignatureWrapper<byte[]>
  • Method Details

    • hasReceiptRequest

      public boolean hasReceiptRequest()
      Specified by:
      hasReceiptRequest in class SignatureWrapper<byte[]>
    • attached

      public static SignatureBytesWrapper attached​(byte[] signedData, String filename)
      Creates a signature data wrapper for an attached signature.
      Parameters:
      signedData - The signature data
      filename - The filename
      Returns:
      The signature data wrapper
    • detached

      public static SignatureBytesWrapper detached​(byte[] signedData, byte[] detachedData, String filename)
      Creates a signature data wrapper for a detached signature.
      Parameters:
      signedData - The signature data
      detachedData - The detached data
      filename - The filename
      Returns:
      The signature data wrapper
    • detachedHash

      public static SignatureBytesWrapper detachedHash​(byte[] signedData, Map<String,​byte[]> hashes, String filename)