Skip to main content

@bloock/sdk / ManagedKey

Class: ManagedKey

Represents a managed key.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ManagedKey(id, protection, keyType, key, accessControlType, name?, expiration?): ManagedKey

Constructs a ManagedKey object with the specified parameters.

Parameters

NameType
idstring
protectionKeyProtectionLevel
keyTypeKeyType
keystring
accessControlTypeAccessControlType
name?string
expiration?number

Returns

ManagedKey

Defined in

entity/key/managed_key.ts:49

Properties

accessControlType

accessControlType: AccessControlType

Is the access control type for the key.

Defined in

entity/key/managed_key.ts:37


expiration

Optional expiration: number

Is the timestamp indicating when the key expires.

Defined in

entity/key/managed_key.ts:29


id

id: string

Is the unique identifier of the managed key (ex: 46c49ee7-ef44-472c-a873-ce81a2d5d764).

Defined in

entity/key/managed_key.ts:13


key

key: string

Is the actual public key.

Defined in

entity/key/managed_key.ts:33


keyType

keyType: KeyType

Is the type of the key.

Defined in

entity/key/managed_key.ts:25


name

Optional name: string

Is the name of the managed key.

Defined in

entity/key/managed_key.ts:17


protection

protection: KeyProtectionLevel

Is the protection level for the key.

Defined in

entity/key/managed_key.ts:21

Methods

toProto

toProto(): ManagedKey

Returns

ManagedKey

Defined in

entity/key/managed_key.ts:67


fromProto

fromProto(r): ManagedKey

Parameters

NameType
rManagedKey

Returns

ManagedKey

Defined in

entity/key/managed_key.ts:79