Skip to main content

Class: SecretMongo

Defined in: src/models/mongo/SecretMongo.ts:44

Implementation of the Secret interface for storage in a MongoDB database. If SQL is desired, please use models.sql.SecretSQL instead.

Extends

  • BaseMongoEntity

Implements

Constructors

Constructor

new SecretMongo(other?): SecretMongo

Defined in: src/models/mongo/SecretMongo.ts:60

Parameters

other?

Partial<SecretMongo>

Returns

SecretMongo

Overrides

BaseMongoEntity.constructor

Properties

_id?

optional _id?: any

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseMongoEntity.d.ts:11

The internal unique identifier used by MongoDB.

Inherited from

BaseMongoEntity._id


data

data: any

Defined in: src/models/mongo/SecretMongo.ts:47

The data associated with the secret.

Implementation of

Secret.data


dateCreated

dateCreated: Date

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:18

The date and time that the entity was created.

Implementation of

Secret.dateCreated

Inherited from

BaseMongoEntity.dateCreated


dateModified

dateModified: Date

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:22

The date and time that the entity was last modified.

Implementation of

Secret.dateModified

Inherited from

BaseMongoEntity.dateModified


hint?

optional hint?: string

Defined in: src/models/mongo/SecretMongo.ts:51

A short textual description that gives the user a hint about what the secret is.

Implementation of

Secret.hint


type

type: SecretType = SecretType.PASSWORD

Defined in: src/models/mongo/SecretMongo.ts:54

The type of secret (e.g. fido2, openid, password, passkey, totp)

Implementation of

Secret.type


uid

uid: string

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:14

The universally unique identifier of the entity.

Implementation of

Secret.uid

Inherited from

BaseMongoEntity.uid


userUid

userUid: string = ""

Defined in: src/models/mongo/SecretMongo.ts:58

The unique identifier of the user account this secret is associated with.

Implementation of

Secret.userUid


version

version: number

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26

The optimistic lock version.

Implementation of

Secret.version

Inherited from

BaseMongoEntity.version