Class SignatureBytesWrapper
java.lang.Object
br.ufsc.labsec.signature.wrappers.SignatureWrapper<byte[]>
br.ufsc.labsec.signature.wrappers.SignatureBytesWrapper
public class SignatureBytesWrapper extends SignatureWrapper<byte[]>
-
Nested Class Summary
Nested classes/interfaces inherited from class br.ufsc.labsec.signature.wrappers.SignatureWrapper
SignatureWrapper.Format
-
Field Summary
Fields inherited from class br.ufsc.labsec.signature.wrappers.SignatureWrapper
detachedData, filename, format, hashes, receiptRequestData, receiptRequestName, signedData
-
Method Summary
Modifier and Type Method Description static SignatureBytesWrapper
attached(byte[] signedData, String filename)
Creates a signature data wrapper for an attached signature.static SignatureBytesWrapper
detached(byte[] signedData, byte[] detachedData, String filename)
Creates a signature data wrapper for a detached signature.static SignatureBytesWrapper
detachedHash(byte[] signedData, Map<String,byte[]> hashes, String filename)
boolean
hasReceiptRequest()
Methods inherited from class br.ufsc.labsec.signature.wrappers.SignatureWrapper
det, format, hashes, name, receiptRequest, receiptRequestName, sig, withReceiptRequest
-
Method Details
-
hasReceiptRequest
public boolean hasReceiptRequest()- Specified by:
hasReceiptRequest
in classSignatureWrapper<byte[]>
-
attached
Creates a signature data wrapper for an attached signature.- Parameters:
signedData
- The signature datafilename
- 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 datadetachedData
- The detached datafilename
- The filename- Returns:
- The signature data wrapper
-
detachedHash
public static SignatureBytesWrapper detachedHash(byte[] signedData, Map<String,byte[]> hashes, String filename)
-