Key

Key

new Key()

Version:
  • 1.0

The Key model module.

Members

blob :String

Encrypted private key

Type:
  • String

keyId :String

Key ID

Type:
  • String

krn :String

Name of the resource

Type:
  • String

publicKey :String

Public key

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {Key}

Constructs a Key from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj Key

Optional instance to populate.

Returns:

The populated Key instance.

Type
Key

Key

new Key(blob, keyId, krn, publicKey)

Constructs a new Key. Created key information

Parameters:
Name Type Description
blob String

Encrypted private key

keyId String

Key ID

krn String

Name of the resource

publicKey String

Public key

Members

blob :String

Encrypted private key

Type:
  • String

keyId :String

Key ID

Type:
  • String

krn :String

Name of the resource

Type:
  • String

publicKey :String

Public key

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {Key}

Constructs a Key from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj Key

Optional instance to populate.

Returns:

The populated Key instance.

Type
Key