Class: Secret
A reference to a secret value, which can be handled more safely than the value itself.
Extends
BaseClient
Constructors
new Secret()
new Secret(
ctx
?,_id
?,_name
?,_plaintext
?):Secret
Constructor is used for internal usage only, do not create object from it.
Parameters
ctx?
Context
_id?
_name?
string
_plaintext?
string
Returns
Overrides
BaseClient.constructor
Methods
id()
id():
Promise
<SecretID
>
A unique identifier for this Secret.
Returns
Promise
<SecretID
>
name()
name():
Promise
<string
>
The name of this secret.
Returns
Promise
<string
>
plaintext()
plaintext():
Promise
<string
>
The value of this secret.
Returns
Promise
<string
>