Skip to main content

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(parent?, _id?, _name?, _plaintext?): Secret

Constructor is used for internal usage only, do not create object from it.

Parameters

parent?

parent.ctx?: Context

parent.queryTree?: QueryTree[]

_id?: SecretID

_name?: string

_plaintext?: string

Returns

Secret

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>