@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
| Name | Type |
|---|---|
id | string |
protection | KeyProtectionLevel |
keyType | KeyType |
key | string |
accessControlType | AccessControlType |
name? | string |
expiration? | number |
Returns
Defined in
Properties
accessControlType
• accessControlType: AccessControlType
Is the access control type for the key.
Defined in
expiration
• Optional expiration: number
Is the timestamp indicating when the key expires.
Defined in
id
• id: string
Is the unique identifier of the managed key (ex: 46c49ee7-ef44-472c-a873-ce81a2d5d764).
Defined in
key
• key: string
Is the actual public key.
Defined in
keyType
• keyType: KeyType
Is the type of the key.
Defined in
name
• Optional name: string
Is the name of the managed key.
Defined in
protection
• protection: KeyProtectionLevel
Is the protection level for the key.
Defined in
Methods
toProto
▸ toProto(): ManagedKey
Returns
ManagedKey
Defined in
fromProto
▸ fromProto(r): ManagedKey
Parameters
| Name | Type |
|---|---|
r | ManagedKey |