combining

fun combining(encryptor: JweEncryptor, decryptor: JweDecryptor): JweProcessor(source)

Creates a JweProcessor that delegates encryption to encryptor and decryption to decryptor.

Both must share the same algorithm; encryptor's algorithm and key ID are used for the combined processor.

Return

a JweProcessor combining both operations

Parameters

encryptor

the JweEncryptor that performs key wrapping and content encryption

decryptor

the JweDecryptor that performs key unwrapping and content decryption