issueDeliveryAuthorization

fun issueDeliveryAuthorization(subjectPublicKey: PublicKey, issuerPrivateKey: PrivateKey, validityEndDate: ZonedDateTime, issuerCertificate: Certificate, validityStartDate: ZonedDateTime = ZonedDateTime.now()): Certificate

Issue a Parcel Delivery Authorization (PDA) or Cargo Delivery Authorization (CDA).

The issuer must be the private node wishing to receive messages from the subject. Both nodes must be of the same type: Both gateways or both endpoints.

Parameters

subjectPublicKey

The public key of the grantee node

issuerPrivateKey

The private key of the granter node

validityEndDate

The end date of the certificate to be issued

issuerCertificate

The certificate of the grantor

validityStartDate

The start date of the certificate to be issued