Class X509Extension
This class represents an X509v3 certificate extension. See RFC 5280 as a specification.
Implements
Inherited Members
Namespace: pdftron.Crypto
Assembly: PDFTronDotNet.dll
Syntax
public class X509Extension : IDisposableConstructors
X509Extension(IntPtr)
Declaration
public X509Extension(IntPtr impl_ptr)Parameters
| Type | Name | Description | 
|---|---|---|
| IntPtr | impl_ptr | 
Methods
Destroy()
Declaration
public void Destroy()Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)Parameters
| Type | Name | Description | 
|---|---|---|
| bool | disposing | 
~X509Extension()
Declaration
protected ~X509Extension()GetData()
Retrieves the raw binary DER-encoded data of the extension. (DER is short for Distinguished Encoding Rules.)
Declaration
public byte[] GetData()Returns
| Type | Description | 
|---|---|
| byte[] | a container holding the bytes of the extension in the form of binary DER-encoded data | 
GetObjectIdentifier()
Retrieves the OID (object identifier) of the extension in the form of integer components in a container. The meaning of an OID can be determined from an OID repository.
Declaration
public ObjectIdentifier GetObjectIdentifier()Returns
| Type | Description | 
|---|---|
| ObjectIdentifier | an ObjectIdentifier object | 
IsCritical()
Retrieves whether the extension is 'critical'. See RFC 5280 for an explanation of what this means.
Declaration
public bool IsCritical()Returns
| Type | Description | 
|---|---|
| bool | a boolean representing the criticality flag of the extension | 
ToString()
Returns a string representation of the extension.
Declaration
public string ToString()Returns
| Type | Description | 
|---|---|
| string | a string representation of the extension | 
Remarks
Output may change in future versions.