CRLExtensions

This class defines the CRL Extensions. It is used for both CRL Extensions and CRL Entry Extensions, which are defined are follows: <pre> TBSCertList ::= SEQUENCE { version Version OPTIONAL, -- if present, must be v2 signature AlgorithmIdentifier, issuer Name, thisUpdate Time, nextUpdate Time OPTIONAL, revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate Time, crlEntryExtensions Extensions OPTIONAL -- if present, must be v2 } OPTIONAL, crlExtensions [0] EXPLICIT Extensions OPTIONAL -- if present, must be v2 } </pre>

@author Hemma Prafullchandra

Constructors

this
this()

Default constructor.

this
this(DerInputStream inputStream)

Create the object, decoding the values from the passed DER stream.

Members

Functions

encode
void encode(OutputStream stream, bool isExplicit)

Encode the extensions in DER form to the stream.

get
Extension get(string as)

Get the extension with this as.

getAllExtensions
Extension[] getAllExtensions()

Return a collection view of the extensions. @return a collection view of the extensions in this CRL.

getElements
Enumeration!Extension getElements()

Return an enumeration of the extensions. @return an enumeration of the extensions in this CRL.

hasUnsupportedCriticalExtension
bool hasUnsupportedCriticalExtension()

Return true if a critical extension is found that is not supported, otherwise return false.

opEquals
bool opEquals(Object other)

Compares this CRLExtensions for equality with the specified object. If the <code>other</code> object is an <code>instanceof</code> <code>CRLExtensions</code>, then all the entries are compared with the entries from this.

remove
void remove(string as)

Delete the extension value with this as.

set
void set(string as, Object obj)

Set the extension value with this as.

toHash
size_t toHash()

Returns a hashcode value for this CRLExtensions.

toString
string toString()

Returns a string representation of this <tt>CRLExtensions</tt> object in the form of a set of entries, enclosed in braces and separated by the ASCII characters "<tt>,&nbsp;</tt>" (comma and space). <p>Overrides to <tt>toString</tt> method of <tt>Object</tt>.

Meta