Namespace: PublicKey

PublicKey

Public Key operations.

Author:
  • <p>n1474335 [n1474335@gmail.com]</p>
License:
  • Apache-2.0
Source:

Members


<static, constant> X509_INPUT_FORMAT

Default Value:
  • ["PEM","DER Hex","Base64","Raw"]
Source:

<static, constant> PEM_HEADER_STRING

Default Value:
  • CERTIFICATE
Source:

<static, constant> ASN1_TRUNCATE_LENGTH

Default Value:
  • 32
Source:

Methods


<static> run_parse_x509(input, args)

Parse X.509 certificate operation.

Parameters:
Name Type Description
input string
args Array.<Object>
Source:
Returns:
Type
string

<static> run_pem_to_hex(input, args)

PEM to Hex operation.

Parameters:
Name Type Description
input string
args Array.<Object>
Source:
Returns:
Type
string

<static> run_hex_to_pem(input, args)

Hex to PEM operation.

Parameters:
Name Type Description
input string
args Array.<Object>
Source:
Returns:
Type
string

<static> run_hex_to_object_identifier(input, args)

Hex to Object Identifier operation.

Parameters:
Name Type Description
input string
args Array.<Object>
Source:
Returns:
Type
string

<static> run_object_identifier_to_hex(input, args)

Object Identifier to Hex operation.

Parameters:
Name Type Description
input string
args Array.<Object>
Source:
Returns:
Type
string

<static> run_parse_asn1_hex_string(input, args)

Parse ASN.1 hex string operation.

Parameters:
Name Type Description
input string
args Array.<Object>
Source:
Returns:
Type
string

<private, static> _format_dn_str(dn_str, indent)

Formats Distinguished Name (DN) strings.

Parameters:
Name Type Description
dn_str string
indent number
Source:
Returns:
Type
string

<private, static> _format_byte_str(byte_str, length, indent)

Formats byte strings by adding line breaks and delimiters.

Parameters:
Name Type Description
byte_str string
length number

Line width

indent number
Source:
Returns:
Type
string

<private, static> _format_date(date_str)

Formats dates.

Parameters:
Name Type Description
date_str string
Source:
Returns:
Type
string