Class SecretRetriever
java.lang.Object
com.github.cafapi.common.decoders.js.SecretRetriever
Provides access to secrets requested during decoding.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SecretRetriever
public SecretRetriever()
-
-
Method Details
-
getSecret
Gets the value to use for the specified secret.- Parameters:
key
- Name of secret.- Returns:
- Value of secret specified.
- Throws:
IOException
- If there is an error reading the file when using the _FILE variantNullPointerException
- If the key parameter is null
-