EncryptionKeyPair
class EncryptionKeyPair(val identifier: EncryptionKey.Identifier, val publicKey: Key, val privateKey: Key) : EncryptionKey, JweProcessor(source)
A complete key pair that holds both public and private key material, implementing JweProcessor.
Produced automatically by mergeWith when an EncryptionOnlyKey and a DecryptionOnlyKey with the same Identifier are both registered in a co.touchlab.kjwt.model.registry.DefaultJwtProcessorRegistry. Supports both encryption and decryption.
Properties
Functions
Link copied to clipboard
open suspend override fun encrypt(data: ByteArray, aad: ByteArray, contentAlgorithm: EncryptionContentAlgorithm): JweEncryptResult
Link copied to clipboard