Class: PKCS11_ECDSA_KEY

PKCS11_ECDSA_KEY


new PKCS11_ECDSA_KEY()

This module implements the module:api.Key interface, for ECDSA key management by Hardware Security Module support via PKCS#11 interface.

Extends

Methods


getPublicKey()

Returns the corresponding public key if this key is an asymmetric private key. If this key is already public, returns this key itself.
Inherited From:
Overrides:
Returns:
the corresponding public key if this key is an asymmetric private key. If this key is already public, returns this key itself.
Type
module:api.Key

getSKI()

Returns the subject key identifier of this key
Inherited From:
Overrides:
Returns:
The subject key identifier of this key as a hexidecial encoded string
Type
string

isPrivate()

Returns true if this key is an asymmetric private key, false otherwise.
Inherited From:
Overrides:
Returns:
if this key is an asymmetric private key
Type
boolean

isSymmetric()

Returns true if this key is a symmetric key, false is this key is asymmetric
Inherited From:
Overrides:
Returns:
if this key is a symmetric key
Type
boolean

toBytes()

Converts this key to its PEM representation, if this operation is allowed.
Inherited From:
Overrides:
Returns:
the PEM string representation of the key
Type
string