Interface IEnvelope
- All Known Implementing Classes:
Envelope
public interface IEnvelope
Envelope.
- Since:
- 5.1
- Author:
- m.hesselink
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the header.byte[]
get the payload.Get the string representation of the payload.byte[]
get the signature of the payload.Get the string representation of the signature.Get the version of this envelope.void
setHeader
(byte[] header) Set the header.void
setPayload
(byte[] bytes) Set the payload.void
setSignature
(byte[] bytes) Set the signature.
-
Method Details
-
getVersion
EnvelopeVersion getVersion()Get the version of this envelope.- Returns:
- Version
-
getHeader
byte[] getHeader()Get the header.- Returns:
- the header.
-
setHeader
void setHeader(byte[] header) Set the header.- Parameters:
header
- The header.- Throws:
CryptoGraphicException
- when the header is not provided
-
getSignature
byte[] getSignature()get the signature of the payload.- Returns:
- signature bytes
-
setSignature
void setSignature(byte[] bytes) Set the signature.- Parameters:
bytes
- The signature.- Throws:
CryptoGraphicException
- when the signature is not provided
-
getPayload
byte[] getPayload()get the payload.- Returns:
- the payload bytes
-
setPayload
void setPayload(byte[] bytes) Set the payload.- Parameters:
bytes
- The payload.- Throws:
CryptoGraphicException
- when the payload is not provided
-
getSignatureAsString
String getSignatureAsString()Get the string representation of the signature.- Returns:
- the string representation of the signature.
-
getPayloadAsString
String getPayloadAsString()Get the string representation of the payload.- Returns:
- the string representation of the payload.
-