verify

suspend fun verify(plaintext: ByteArray?, serviceOid: String, date: ZonedDateTime): SignatureBundleVerification

Verify the bundle.

Return

The member that produced the signature and the respective plaintext.

Parameters

plaintext

The plaintext whose signature is to be verified.

serviceOid

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

date

The date against which to verify the signature.

Throws

If the bundle is invalid.


suspend fun verify(plaintext: ByteArray?, serviceOid: String, datePeriod: DatePeriod? = null): SignatureBundleVerification

Verify the bundle.

Return

The member that produced the signature and the respective plaintext.

Parameters

plaintext

The plaintext whose signature is to be verified (if the bundle isn't expected to encapsulate it).

serviceOid

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

datePeriod

The period against which to verify the signature.

Throws

If the bundle is invalid.