generate

fun generate(plaintext: ByteArray, serviceOid: String, memberIdBundle: MemberIdBundle, signingKey: PrivateKey, expiryDate: ZonedDateTime, startDate: ZonedDateTime = ZonedDateTime.now(), encapsulatePlaintext: Boolean = false): SignatureBundle

Generate a new signature bundle.

Return

The bundle.

Parameters

plaintext

The plaintext to sign.

serviceOid

The OID of the service to which the signature is bound.

memberIdBundle

The member id bundle to use for signing.

signingKey

The private key for the member certificate in memberIdBundle.

expiryDate

The date after which the signature will be considered invalid.

startDate

The date from which the signature will be considered valid.

Throws

If the bundle cannot be generated.