Class SmartCardHSMKey
Class implementing key access
Defined in: smartcardhsm.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SmartCardHSMKey(sc, id)
Create a key access object
|
Method Attributes | Method Name and Description |
---|---|
getId()
Return the key identifier
|
|
getLabel()
Return the key label as encoded in the PKCS#15 structure
|
|
getSize()
Return the key size in bits
|
|
setDescription(desc)
Set the PKCS#15 private key description
|
|
sign(data, mech)
Sign data using a key in the SmartCard-HSM
|
|
toString()
Return human readable string
|
Class Detail
SmartCardHSMKey(sc, id)
Create a key access object
- Parameters:
- {SmartCardHSM} sc
- the card access object
- {Number} id
- the key identifier
Method Detail
{Number}
getId()
Return the key identifier
- Returns:
- the key identifier
{String}
getLabel()
Return the key label as encoded in the PKCS#15 structure
- Returns:
- the key label
{Number}
getSize()
Return the key size in bits
- Returns:
- the key size in bits
setDescription(desc)
Set the PKCS#15 private key description
- Parameters:
- {ASN1} desc
- the description
{ByteString}
sign(data, mech)
Sign data using a key in the SmartCard-HSM
- Parameters:
- {ByteString} data
- to be signed
- {Number} mech
- the signing mechanism
- Returns:
- the signature
toString()
Return human readable string