Class NoopSecretEngine

  • All Implemented Interfaces:
    SecretEngine

    @Component
    public class NoopSecretEngine
    extends java.lang.Object
    implements SecretEngine
    Secret engine that returns its value ("v") parameter which can be null if not provided. Used for testing.
    • Constructor Detail

      • NoopSecretEngine

        public NoopSecretEngine()
    • Method Detail

      • validate

        public void validate​(EncryptedSecret encryptedSecret)
        Description copied from interface: SecretEngine
        In order for a secretEngine to decrypt an EncryptedSecret, it may require extra information (e.g. decryptionKey, location, encryptionMethod, etc). This method takes an EncryptedSecret and validates it contains the required information the service needs for decryption. Parameter names should not contain ':'
        Specified by:
        validate in interface SecretEngine
        Parameters:
        encryptedSecret - The encrypted secret