present
fun present(kbKey: EcPrivateKey, kbAlgorithm: Algorithm, nonce: String, audience: String, creationTime: Instant = Clock.System.now()): SdJwtKb
Presents an SD-JWT to a verifier.
This generates a SD-JWT+KB from the SD-JWT by simply appending a Key-Binding JWT.
Parameters
kbKey
the private part of key corresponding to cnf
claim in the body of the Issuer-signed JWT.
kbAlgorithm
the algorithm to use for signing, e.g. Algorithm.ESP256.
nonce
the nonce, obtained from the verifier.
audience
the audience, obtained from the verifier.
creationTime
the time the presentation was made.
suspend fun present(kbSecureArea: SecureArea, kbAlias: String, kbKeyUnlockData: KeyUnlockData?, nonce: String, audience: String, creationTime: Instant = Clock.System.now()): SdJwtKb
Presents an SD-JWT to a verifier, using a key in a SecureArea.
This generates a SD-JWT+KB from the SD-JWT by simply appending a Key-Binding JWT.
Parameters
kbSecureArea
the SecureArea for the key-binding key.
kbAlias
the alias for the key-binding key.
kbKeyUnlockData
the KeyUnlockData to use or null
.
nonce
the nonce, obtained from the verifier.
audience
the audience, obtained from the verifier.
creationTime
the time the presentation was made.