Class X501DistinguishedName
This class represents a distinguished name (DN) as defined in X.501. See the X.500 standards, RFC 5280, and an OID repository for more information.
Implements
Inherited Members
Namespace: pdftron.Crypto
Assembly: PDFTronDotNet.dll
Syntax
public class X501DistinguishedName : IDisposable
Constructors
X501DistinguishedName(IntPtr)
Declaration
public X501DistinguishedName(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 |
~X501DistinguishedName()
Declaration
protected ~X501DistinguishedName()
GetAllAttributesAndValues()
Retrieves all of the attribute-type-to-value pairs in this distinguished name.
Declaration
public X501AttributeTypeAndValue[] GetAllAttributesAndValues()
Returns
Type | Description |
---|---|
X501AttributeTypeAndValue[] | a container of X501AttributeTypeAndValue objects |
GetStringValuesForAttribute(ObjectIdentifier)
Returns a container full of string representations of all the values in this distinguished name that match a particular attribute's object identifier (OID).
Declaration
public string[] GetStringValuesForAttribute(ObjectIdentifier in_oid)
Parameters
Type | Name | Description |
---|---|---|
ObjectIdentifier | in_oid | the object identifier representing the sought attribute. |
Returns
Type | Description |
---|---|
string[] | a container of string values containing any strings associated with the supplied attribute |
HasAttribute(ObjectIdentifier)
Returns whether this distinguished name contains a particular attribute, identified by its object identifier (OID).
Declaration
public bool HasAttribute(ObjectIdentifier in_oid)
Parameters
Type | Name | Description |
---|---|---|
ObjectIdentifier | in_oid | the object identifier representing the sought attribute. |
Returns
Type | Description |
---|---|
bool | a boolean value representing whether this distinguished name contains the supplied attribute |