Object built-in object

Object X509Crl

x509 Revocation certificate object

The X509Crl object belongs to the crypto module and is created:

1
var k = new crypto.X509Crl();

Inheritance

Constructor

X509Crl

X509Crl constructor

1
new X509Crl();

X509Crl constructor, load a revocation certificate in DER format

1
new X509Crl(Buffer derCrl);

Call parameters:

  • derCrl : Buffer , DER format revocation certificate

X509Crl constructor, load a revocation certificate in PEM format

1
new X509Crl(String pemCrl);

Call parameters:

  • pemCrl : Revocation certificate in String, PEM format

Member attribute

version

Integer, get the version of the certificate

1
readonly Integer X509Crl.version;

issuer

String, get the distinguished name of the certificate issuer

1
readonly String X509Crl.issuer;

serials

Array, get a list of certificate revocation serial numbers

1
readonly Array X509Crl.serials;

thisUpdate

Date, the update time of the certificate

1
readonly Date X509Crl.thisUpdate;

nextUpdate

Date, the next update time of the certificate

1
readonly Date X509Crl.nextUpdate;

next

X509Crl, get the next certificate in the certificate chain

1
readonly X509Crl X509Crl.next;

Member function

load

Load a revocation certificate in DER format, which can be called multiple times

1
X509Crl.load(Buffer derCrl);

Call parameters:

  • derCrl : Buffer , DER format revocation certificate

Load a revocation certificate in PEM format, which can be called multiple times

1
X509Crl.load(String pemCrl);

Call parameters:

  • pemCrl : Revocation certificate in String, PEM format

loadFile

Load a revocation certificate in PEM/DER format, which can be called multiple times

1
X509Crl.loadFile(String filename);

Call parameters:

  • filename : String, revoked certificate file name

dump

Export the revocation certificate that has been loaded

1
Array X509Crl.dump(Boolean pem = true);

Call parameters:

  • pem : Boolean, specify to output the revocation certificate in PEM format, the default is true

Return result:

  • Array , export the revoked certificate chain as an array

clear

Empty the revocation certificate that has been loaded

1
X509Crl.clear();

toString

Returns the string representation of the object, generally returns "[Native Object]", the object can be reimplemented according to its own characteristics

1
String X509Crl.toString();

Return result:

  • String , returns a string representation of the object

toJSON

Returns the JSON format representation of the object, generally returns a collection of readable attributes defined by the object

1
Value X509Crl.toJSON(String key = "");

Call parameters:

  • key : String, unused

Return result:

  • Value , returns a value containing JSON serializable