Class PublicKeyFile
Read and write encoded SmartCard-HSM public keys.
Defined in: PublicKeyFile.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
PublicKeyFile(arg, arg)
Create a Public Key File object.
|
| Method Attributes | Method Name and Description |
|---|---|
|
encode()
Encode the certificate chain in TLV encoding.
|
|
|
parse(content)
Parse the binary file content as TLV structure and validate the certificate chain.
|
Class Detail
PublicKeyFile(arg, arg)
Create a Public Key File object.
- Parameters:
- {String} arg
- the file to read from
- {CVC[]} arg
- the certificate chain with the public key first.
Method Detail
{ByteString}
encode()
Encode the certificate chain in TLV encoding.
- Returns:
- the encoded content for the file
parse(content)
Parse the binary file content as TLV structure and validate the certificate chain.
- Parameters:
- {ByteString} content
- the file content.