Smart Card Shell

CRL - Reference Documentation

Class implementing support for Certificate Revocation Lists (CRL)

This class provides a wrapper for java.security.cert.X509CRL objects. All methods from this Java class are available through the LiveConnect mechanism.

Index of Methods

Constructor

Prototype

CRL(ByteString dercrl)

CRL(String crlfile)

Description

Create certificate revocation list object from DER encoded CRL

Arguments

Type Name Description
ByteString dercrl DER encoded certificate revocation list
String crlfile

Filename of file containing DER encoded certificate revocation list.

Unless an absolute file name is given, the path is relative to the location of the script in which the constructor is called.

Exceptions

Name Value Description
GPError GPError.ARGUMENTS_MISSING Too few arguments in call
GPError GPError.INVALID_ARGUMENTS Too many arguments in call
GPError GPError.INVALID_TYPE Type of argument is invalid for call
GPError GPError.INVALID_DATA The certificate revocation list has an invalid or unrecognized structure

Example


var crl = new CRL("root.crl");

var ncrl = crl.getNative();

print(ncrl.getVersion());


getNative()

Prototype

java.security.X509CRL getNative()

Description

Return underlying native java.security.X509CRL object. All methods of the Java object are available through the LiveConnect mechanism.

For methods with return type byte[], as ByteString object is created.

Return

java.security.X509CRL Native Java object

Exceptions

Name Value Description
GPError GPError.ARGUMENTS_MISSING Too few arguments in call
GPError GPError.INVALID_ARGUMENTS Too many arguments in call
GPError GPError.INVALID_TYPE Type of argument is invalid for call

Example


var crl = new CRL("root.crl");
var ncrl = crl.getNative();

// Use Java native method to obtain version of CRL
print("Version: " + ncrl.getVersion());

// Call Java native method to obtain encoded format
var encoded = ncrl.getEncoded();

// Call Java native method get IssuerDN()
print("Issuer: " + ncrl.getIssuerDN());