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.
service Oid
The OID of the service to which the signature is bound.
member Id Bundle
The member id bundle to use for signing.
signing Key
The private key for the member certificate in memberIdBundle.
expiry Date
The date after which the signature will be considered invalid.
start Date
The date from which the signature will be considered valid.
Throws
If the bundle cannot be generated.