EncryptedRAMFMessage

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The creation date of the message

Link copied to clipboard

Expiry date of the message

Link copied to clipboard
val id: String

The id of the message

Link copied to clipboard

The payload

Link copied to clipboard

The recipient of the message

Link copied to clipboard

The recipient's certificate, if attached.

Link copied to clipboard

The sender's Relaynet PKI certificate

Link copied to clipboard

Certificate chain of the sender

Link copied to clipboard
val ttl: Int

The time-to-live of the message (in seconds)

Functions

Link copied to clipboard
fun serialize(senderPrivateKey: PrivateKey, hashingAlgorithm: HashingAlgorithm? = null): ByteArray

Serialize the message.

Link copied to clipboard
suspend fun unwrapPayload(privateKeyStore: PrivateKeyStore): PayloadUnwrapping<P>

Decrypt and deserialize payload.

Link copied to clipboard
fun validate(trustedCAs: Collection<Certificate>? = null)

Validate the message.