Object built-in object

Object X509Crl

x509 revoked 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 revoked 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 : String, PEM format revoked certificate

Member attributes

version

Integer, obtain 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 time when the certificate was updated

1
readonly Date X509Crl.thisUpdate;

nextUpdate

Date, get 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 revoked 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 : String, PEM format revoked certificate

loadFile

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

1
X509Crl.loadFile(String filename);

Call parameters:

  • filename : String, the name of the revoked certificate file

dump

Export the loaded revocation certificate

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

Call parameters:

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

Return result:

  • Array , export the revoked certificate chain in an array

clear

Clear the loaded revocation certificate

1
X509Crl.clear();

toString

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

1
String X509Crl.toString();

Return result:

  • String , returns the 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