CargoCollectionAuthorization

class CargoCollectionAuthorization(recipient: Recipient, payload: ByteArray, senderCertificate: Certificate, messageId: String? = null, creationDate: ZonedDateTime? = null, ttl: Int? = null, senderCertificateChain: Set<Certificate>? = null) : EncryptedRAMFMessage<CargoCollectionRequest>

Cargo Collection Authorization (CCA)

Constructors

Link copied to clipboard
constructor(recipient: Recipient, payload: ByteArray, senderCertificate: Certificate, messageId: String? = null, creationDate: ZonedDateTime? = null, ttl: Int? = null, senderCertificateChain: Set<Certificate>? = null)

Types

Link copied to clipboard
object Companion : RAMFMessageCompanion<CargoCollectionAuthorization>

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

Decrypt and deserialize payload.

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

Validate the message.