-
getHandle()
-
Returns the key's HSM handle in string format
Returns:
The handle identifier of this key as a hexidecial encoded string
-
Type
-
string
-
getPublicKey()
-
Returns the corresponding public key if this key is an asymmetric private key.
If this key is already public, returns this key itself.
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
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.
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
Returns:
if this key is a symmetric key
-
Type
-
boolean
-
toBytes()
-
Converts this key to its PEM representation, if this operation is allowed.
Returns:
the PEM string representation of the key
-
Type
-
string