Object built-in object

Object X509Crl

x509 revoked certificate object

X509Crl object belongs to crypto Module, create:

1
var k = new crypto.X509Crl();

Inheritance

#lineWidth: 1.5 #font: Helvetica,sans-Serif #fontSize: 10 #leading: 1.6 #.this: fill=lightgray #.class: fill=white [<class>object|toString();toJSON()] [<this>X509Crl|new X509Crl()|version;issuer;serials;thisUpdate;nextUpdate;next|load();loadFile();dump();clear()] [object] <:- [X509Crl] X509Crl new X509Crl() version issuer serials thisUpdate nextUpdate next load() loadFile() dump() clear() object toString() toJSON()

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, Revoked certificate in DER format

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 renewed this time

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, Revoked certificate in DER format

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, file name of revoked certificate

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