Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class

# X509Extension

extends Object
implements AutoCloseable

java.lang.Object
↳ | com.pdftron.crypto.X509Extension

## Class Overview

This class represents an X509v3 certificate extension. See RFC 5280 as a specification.

## Summary

Public Constructors
| X509Extension(long impl_ptr)

Public Methods
long | __GetHandle()
void | close() Frees the native memory of the object.
void | destroy() Frees the native memory of the object.
int[] | getData() Retrieves the raw binary DER-encoded data of the extension.
long | getObjectIdentifier() Retrieves the OID (object identifier) of the extension in the form of integer components in a container.
boolean | isCritical() Retrieves whether the extension is 'critical'.
String | toString() Returns a string representation of the extension.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## Public Constructors

#### public X509Extension (long impl_ptr)

## Public Methods

#### public long __GetHandle ()

#### public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public int[] getData ()

Retrieves the raw binary DER-encoded data of the extension. (DER is short for Distinguished Encoding Rules.)

##### Returns

- a container holding the bytes of the extension in the form of binary DER-encoded data

##### Throws

PDFNetException |

#### public long 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.

##### Returns

- an ObjectIdentifier object

##### Throws

PDFNetException |

#### public boolean isCritical ()

Retrieves whether the extension is 'critical'. See RFC 5280 for an explanation of what this means.

##### Returns

- a boolean representing the criticality flag of the extension

##### Throws

PDFNetException |

#### public String toString ()

Returns a string representation of the extension. Output may change in future versions.

##### Returns

- a string representation of the extension

##### Throws

PDFNetException |