Class Secrets
Object
Secrets
Utilities class that provides static methods to get stored secrets.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Secrets
public Secrets()
-
-
Method Details
-
getSecret
public static String getSecret(String _sSecretName) throws UnsupportedOperationException, IllegalArgumentException, IOException Returns the secret with the given name.- Parameters:
_sSecretName- the name of the secret to get- Returns:
- the value of the specified secret
- Throws:
IllegalArgumentException- if there's no secret with the given name or the name isnullIOException- if the secrets cannot be loadedUnsupportedOperationException- if the method is not invoked from a secret script context
-