Package org.jwcarman.codec.crypto
package org.jwcarman.codec.crypto
-
ClassDescriptionOpt-in
DataKeyStrategythat caches a data-encryption key (DEK) and rolls to a fresh one aftermaxMessagesmessages ormaxAgehas elapsed, whichever comes first.A data-encryption key (DEK) acquired from aDataKeyProvider: the plaintext key material used to encrypt or decrypt one message, paired with the id of the key-encryption key (KEK) that wrapped it and the wrapped (ciphertext) form of the key itself.SPI for envelope-encryption key management, implemented by consumers against an in-process key store or a remote KMS (AWS KMS, HashiCorp Vault, GCP Cloud KMS, etc.).Pure lifecycle policy for acquiring the data-encryption key used to encode a message.Exception indicating that the data provided for decryption is invalid or corrupted.DefaultDataKeyStrategy: acquires a fresh data-encryption key per message.Exception indicating a failure during the encryption operation.Envelope-encryptionCodecforbyte[]: encrypts with AES-256-GCM under a per-message data-encryption key (DEK), itself wrapped by aDataKeyProviderand carried alongside the ciphertext.Builder forEnvelopeCodec.In-processDataKeyProviderfor consumers without a KMS, backed by one or more key-encryption keys (KEKs) supplied at construction.Builder forJceDataKeyProvider.Exception indicating that key infrastructure is unavailable.