Summary: Ctors | Methods | Inherited Methods | [Expand All]
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
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 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.

##### 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 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

##### Throws

PDFNetException |

#### 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

##### Throws

PDFNetException |