Class AbstractLookupKeyProvider

java.lang.Object
com.kingsrook.qqq.backend.core.crypto.AbstractLookupKeyProvider
All Implemented Interfaces:
QKeyProviderInterface
Direct Known Subclasses:
AwsSecretsManagerKeyProvider, EnvKeyProvider

public abstract class AbstractLookupKeyProvider extends Object implements QKeyProviderInterface
Base for key providers that look up base64 text by name. Naming convention for a keyRef NAME: - NAME holds the CURRENT key (base64 of 32 bytes) - NAME_VERSION optionally names the current version (default "1") - NAME_V{version} holds the key for an older version, kept while data written under it still exists So rotating is: copy NAME to NAME_V{old}, put the new key in NAME, and set NAME_VERSION to the new version.