KeyObject

@JSImport("crypto", "KeyObject") @native @JSType class KeyObject extends StObject with _KeyLike
trait _KeyLike
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
class KeyObject

Value members

Concrete methods

@JSName("export")
@JSName("export")
@JSName("export")
def export_pem(options: KeyExportOptions[pem]): String | Buffer

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

This property exists only on asymmetric keys. Depending on the type of the key, this object contains information about the key. None of the information obtained through this property can be used to uniquely identify a key or to compromise the security of the key.

This property exists only on asymmetric keys. Depending on the type of the key, this object contains information about the key. None of the information obtained through this property can be used to uniquely identify a key or to compromise the security of the key.

var asymmetricKeySize: UndefOr[Double]

For asymmetric keys, this property represents the size of the embedded key in bytes. This property is undefined for symmetric keys.

For asymmetric keys, this property represents the size of the embedded key in bytes. This property is undefined for symmetric keys.

var asymmetricKeyType: UndefOr[KeyType]
var symmetricKeySize: UndefOr[Double]