Class Index | File Index

Classes


Class PublicKeyReference

A class that implements a public key reference to be used as CAR and CHR in card verifiable certificates (CVC).


Defined in: PublicKeyReference.js.

Class Summary
Constructor Attributes Constructor Name and Description
 

Create a public key reference (CAR/CHR) from binary representation or individual fields.

Method Summary
Method Attributes Method Name and Description
 
equals(other)
Returns true if other public key reference equals this public key reference
 
Returns the binary encoded public key reference
 
Returns the 2 character country code
 
Returns the certificate holder name, which is the concatenation of the country code and the holder mnemonic.
 
Returns the variable length holder mnemonic
 
Returns the 5 character sequence number
<static>  
PublicKeyReference.test()
Test function
 
Returns the string representation of the public key reference
Class Detail
PublicKeyReference()

Create a public key reference (CAR/CHR) from binary representation or individual fields.

Use one of the following signatures:

  • PublicKeyReference(ByteString value) - binary public key reference
  • PublicKeyReference(String value) - string encoded public key reference
  • PublicKeyReference(String countryCode, String holderMnemonic, String sequenceNumber) - string encoded public key reference

@see PublicKeyReference.test() for an example.

Method Detail
{boolean} equals(other)
Returns true if other public key reference equals this public key reference
Parameters:
other
Returns:
true if equals

{ByteString} getBytes()
Returns the binary encoded public key reference
Returns:
the public key reference

{String} getCountryCode()
Returns the 2 character country code
Returns:
the country code

{String} getHolder()
Returns the certificate holder name, which is the concatenation of the country code and the holder mnemonic.
Returns:
the holder name

{String} getMnemonic()
Returns the variable length holder mnemonic
Returns:
the holder mnemonic

{String} getSequenceNo()
Returns the 5 character sequence number
Returns:
the sequence number

<static> PublicKeyReference.test()
Test function

{String} toString()
Returns the string representation of the public key reference
Returns:
the public key reference

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Feb 16 2024 18:38:12 GMT+0100 (CET)