OIDs

public class OIDs

Some well-known OIDs, for convenience.

  • An Object Identifier in dotted notation.

    Declaration

    Swift

    public typealias Dotted = String
  • The OID in dotted notation for the user’s public key.

    Declaration

    Swift

    public static let PublicKey = "1.3.6.1.4.1.51341.15"
  • The OID in dotted notation for an identity document’s ID number.

    Declaration

    Swift

    public static let DocumentID = "1.3.6.1.4.1.51341.2"
  • The OID in dotted notation for an identity document’s class, for example Passport, Drivers License.

    Declaration

    Swift

    public static let DocumentClass = "1.3.6.1.4.1.51341.6"
  • The OID in dotted notation for an identity document’s type, for example Michigan (MI) Driver License.

    Declaration

    Swift

    public static let DocumentType = "1.3.6.1.4.1.51341.1"
  • The OID in dotted notation for an identity document’s photo (front).

    Declaration

    Swift

    public static let DocumentImageFront = "1.3.6.1.4.1.51341.3"
  • The OID in dotted notation for an identity document’s photo (back).

    Declaration

    Swift

    public static let DocumentImageBack = "1.3.6.1.4.1.51341.7"
  • The OID in dotted notation for an identity document’s photo (headshot).

    Declaration

    Swift

    public static let DocumentImageHead = "1.3.6.1.4.1.51341.8"
  • The OID in dotted notation for an identity document’s issuer.

    Declaration

    Swift

    public static let DocumentIssuer = "1.3.6.1.4.1.51341.4"
  • The OID in dotted notation for the result of the document verification.

    Declaration

    Swift

    public static let DocumentResult = "1.3.6.1.4.1.51341.5"
  • The OID in dotted notation for the original document’s issue date.

    Declaration

    Swift

    public static let DocumentIssueDate = "1.3.6.1.4.1.51341.9"
  • The OID in dotted notation for the original document’s SHA256 digest.

    Declaration

    Swift

    public static let DocumentDigest = "1.3.6.1.4.1.51341.10"
  • The OID in dotted notation for the document’s Base64 thumbnail.

    Declaration

    Swift

    public static let DocumentThumb = "1.3.6.1.4.1.51341.11"
  • The OID in dotted notation for the gender (F/M) on an identity document.

    Declaration

    Swift

    public static let Gender = "1.3.6.1.5.5.7.9.3"
  • The OID in dotted notation for the birthday on an identity document.

    Declaration

    Swift

    public static let DateOfBirth = "1.3.6.1.5.5.7.9.1"
  • The OID in dotted notation for the birth place on an identity document.

    Declaration

    Swift

    public static let PlaceOfBirth = "1.3.6.1.5.5.7.9.2"
  • The OID in dotted notation for a person’s full name.

    Declaration

    Swift

    public static let CommonName = "2.5.4.3"
  • The OID in dotted notation for a person’s last name.

    Declaration

    Swift

    public static let Surname = "2.5.4.4"
  • The OID in dotted notation for a document’s country.

    Declaration

    Swift

    public static let Country = "2.5.4.6"
  • The OID in dotted notation for the locality.

    Declaration

    Swift

    public static let Locality = "2.5.4.7"
  • The OID in dotted notation for the state or province.

    Declaration

    Swift

    public static let StateOrProvinceName = "2.5.4.8"
  • The OID in dotted notation for a person’s street address.

    Declaration

    Swift

    public static let StreetAddress = "2.5.4.9"
  • The OID in dotted notation for the organization’s name.

    Declaration

    Swift

    public static let Organization = "2.5.4.10"
  • The OID in dotted notation for the postal code.

    Declaration

    Swift

    public static let PostalCode = "2.5.4.17"
  • The OID in dotted notation for a person’s registered phone number.

    Declaration

    Swift

    public static let TelephoneNumber = "2.5.4.20"
  • The OID in dotted notation for a person’s first name.

    Declaration

    Swift

    public static let GivenName = "2.5.4.42"
  • The OID in dotted notation for a person’s registered postal address.

    Declaration

    Swift

    public static let PostalAddress = "2.5.4.16"
  • The OID in dotted notation for a person’s email address.

    Declaration

    Swift

    public static let EmailAddress = "1.2.840.113549.1.9.1"
  • The OID in dotted notation for a person’s social profile URL.

    Declaration

    Swift

    public static let SocialProfile = "1.3.6.1.4.1.51341.12"
  • The OID in dotted notation for a completed course’s name.

    Declaration

    Swift

    public static let CourseName = "1.3.6.1.4.1.51341.13"
  • The OID in dotted notation for a completed course’s contents.

    Declaration

    Swift

    public static let CourseContents = "1.3.6.1.4.1.51341.14"
  • The OID in dotted notation for the claim’s level of assurance.

    Declaration

    Swift

    public static let LevelOfAssurance = "1.3.6.1.4.1.51341.16"
  • The OID in dotted notation for a claim that the user is at least 21 years old.

    Declaration

    Swift

    public static let Age21OrUp = "1.3.6.1.4.1.51341.21"
  • The OID in dotted notation for the member Id number.

    Declaration

    Swift

    public static let MemberId = "1.3.6.1.4.1.51341.22"
  • The OID in dotted notation for the group Id number.

    Declaration

    Swift

    public static let GroupId = "1.3.6.1.4.1.51341.23"
  • The OID in dotted notation for a person’s middle name.

    Declaration

    Swift

    public static let MiddleName = "1.3.6.1.4.1.51341.17"
  • The OID in dotted notation for a person’s suffix. eg. Jr. Sr.

    Declaration

    Swift

    public static let Suffix = "1.3.6.1.4.1.51341.18"
  • Undocumented

    Declaration

    Swift

    public static func getClaimName (_ attributePath: Dotted) -> String
  • Utility function that returns a display name of the given OID.

    Declaration

    Swift

    public static func getDisplayName(_ attributePath: Dotted) -> String

    Parameters

    attributePath

    The OID in dotted notation.

    Return Value

    The display name (in English) for the given OID, or the original dotted notation for unknown OIDs.

  • Helper to detect whether the OID refers to a document image

    Declaration

    Swift

    public static func isImageOID(_ attributePath: Dotted) -> Bool
  • Helper to detect whether the OID refers to a date

    Declaration

    Swift

    public static func isDateOID(_ attributePath: Dotted) -> Bool
  • Undocumented

    Declaration

    Swift

    public static func normalize(_ oid: Dotted) -> Dotted