public class

X501AttributeTypeAndValue

extends Object
implements AutoCloseable
java.lang.Object
   ↳ com.pdftron.crypto.X501AttributeTypeAndValue

Class Overview

This class represents an AttributeTypeAndValue as mentioned in RFC 5280 in the context of DistinguishedNames and as defined in ITU X.501.

Summary

Public Constructors
X501AttributeTypeAndValue(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.
ObjectIdentifier getAttributeTypeOID()
Retrieves the OID (i.e.
String getStringValue()
Retrieves the value associated with the contained OID (object identifier) as a string, if the value is defined by the OID to be of a string type.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Constructors

public X501AttributeTypeAndValue (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 ObjectIdentifier getAttributeTypeOID ()

Retrieves the OID (i.e. one of the object identifiers from the X.500 attribute types) in the form of integer components in a container.

Returns
  • an ObjectIdentifier object

public String getStringValue ()

Retrieves the value associated with the contained OID (object identifier) as a string, if the value is defined by the OID to be of a string type.

Returns
  • a string containing the string value