PTX501DistinguishedName

@interface PTX501DistinguishedName : NSObject

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.

  • Returns whether this distinguished name contains a particular attribute, identified by its object identifier (OID).

    Declaration

    Objective-C

    - (BOOL)HasAttribute:(PTObjectIdentifier *)in_oid;

    Swift

    func hasAttribute(_ in_oid: PTObjectIdentifier!) -> Bool

    Parameters

    in_oid

    the object identifier representing the sought attribute.

    Return Value

    a boolean value representing whether this distinguished name contains the supplied attribute.

  • Returns a container full of string representations of all the values in this distinguished name that match a particular attribute’s object identifier (OID). If an attribute’s OID defines the corresponding value to not be of a string type, then that value will not be returned from this function.

    Declaration

    Objective-C

    - (NSArray<NSString *> *)GetStringValuesForAttribute:
        (PTObjectIdentifier *)in_oid;

    Swift

    func getStringValues(forAttribute in_oid: PTObjectIdentifier!) -> [String]!

    Parameters

    in_oid

    the object identifier representing the sought attribute.

    Return Value

    a container of string values containing any strings associated with the supplied attribute

  • Retrieves all of the attribute-type-to-value pairs in this distinguished name.

    Declaration

    Objective-C

    - (NSArray<PTX501AttributeTypeAndValue *> *)GetAllAttributesAndValues;

    Swift

    func getAllAttributesAndValues() -> [PTX501AttributeTypeAndValue]!

    Return Value

    a container of X501AttributeTypeAndValue objects

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()