Class NoopSecretEngine
- java.lang.Object
-
- com.netflix.spinnaker.kork.secrets.engines.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 Summary
Constructors Constructor Description NoopSecretEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()byte[]decrypt(EncryptedSecret encryptedSecret)java.lang.Stringidentifier()voidvalidate(EncryptedSecret encryptedSecret)In order for a secretEngine to decrypt an EncryptedSecret, it may require extra information (e.g.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netflix.spinnaker.kork.secrets.SecretEngine
encrypt
-
-
-
-
Method Detail
-
identifier
public java.lang.String identifier()
- Specified by:
identifierin interfaceSecretEngine
-
decrypt
public byte[] decrypt(EncryptedSecret encryptedSecret)
- Specified by:
decryptin interfaceSecretEngine
-
validate
public void validate(EncryptedSecret encryptedSecret)
Description copied from interface:SecretEngineIn 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:
validatein interfaceSecretEngine- Parameters:
encryptedSecret- The encrypted secret
-
clearCache
public void clearCache()
- Specified by:
clearCachein interfaceSecretEngine
-
-