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
From interface java.lang.AutoCloseable

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.

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.

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

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

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

public String toString ()

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

Returns
  • a string representation of the extension