Package io.nitric.api.secret
Class SecretValue
- java.lang.Object
-
- io.nitric.api.secret.SecretValue
-
public class SecretValue extends Object
Provides a Secret Value class.- See Also:
Secrets
,Secret
,SecretVersion
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
get()
Return the secret value data.String
getAsText()
Return the secret value as UTF-8 encoded text.SecretVersion
getSecretVersion()
Return the secret version.String
toString()
Return the string representation of this object.
-
-
-
Method Detail
-
getSecretVersion
public SecretVersion getSecretVersion()
Return the secret version.- Returns:
- the secret version
-
get
public byte[] get()
Return the secret value data.- Returns:
- the secret value data
-
getAsText
public String getAsText()
Return the secret value as UTF-8 encoded text.- Returns:
- the secret value text as UTF-8 encoded text
-
-