SSE4E

Home

GPError
GPSystem
ByteString
ByteBuffer
TLV
TLVList
Card
Atr
Key
Crypto
Application GPApplication GPSecDomain

ASN1
CardFile
IsoSecureChannel
ApplFactory
GPXML
JsScript
CardSim

X509
CRL
KeyStore
CMSSignedData
CMSGenerator
XMLSignature
OCSPQuery
LDAP
SOAP
URLConnection

PKCS11Provider
PKCS11Session
PKCS11Object

OutlineNode

OpenSCDP

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

TypeNameDescription
ByteStringdercrlDER encoded certificate revocation list
Stringcrlfile

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

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEType of argument is invalid for call
GPErrorGPError.INVALID_DATAThe 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.X509CRLNative Java object

Exceptions

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEType 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());