CertificateExtensions

This class defines the Extensions attribute for the Certificate.

@author Amit Kapoor @author Hemma Prafullchandra @see CertAttrSet

Constructors

this
this()

Default constructor.

this
this(DerInputStream stream)

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

Members

Functions

encode
void encode(OutputStream stream)

Encode the extensions in DER form to the stream, setting the context specific tag as needed in the X.509 v3 certificate.

encode
void encode(OutputStream stream, bool isCertReq)

Encode the extensions in DER form to the stream.

get
Extension get(string name)

Get the attribute value. @param name the extension name used in the lookup. @exception IOException if named extension is not found.

getAllExtensions
Extension[] getAllExtensions()

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

getElements
Enumeration!Extension getElements()

Return an enumeration of names of attributes existing within this attribute.

getExtension
Extension getExtension(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName()

Return the name of this attribute.

getNameByOid
string getNameByOid(ObjectIdentifier oid)
Undocumented in source. Be warned that the author may not have intended to support it.
getUnparseableExtensions
Map!(string, Extension) getUnparseableExtensions()
Undocumented in source. Be warned that the author may not have intended to support it.
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 CertificateExtensions for equality with the specified object. If the <code>other</code> object is an <code>instanceof</code> <code>CertificateExtensions</code>, then all the entries are compared with the entries from this.

remove
void remove(string name)

Delete the attribute value. @param name the extension name used in the lookup. @exception IOException if named extension is not found.

set
void set(string name, Extension obj)

Set the attribute value. @param name the extension name used in the cache. @param obj the object to set. @exception IOException if the object could not be cached.

toHash
size_t toHash()

Returns a hashcode value for this CertificateExtensions.

toString
string toString()

Returns a string representation of this <tt>CertificateExtensions</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>.

Variables

IDENT
enum string IDENT;

Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.

NAME
enum string NAME;

name

Meta