Added in API level 1

DName

open class DName
kotlin.Any
   ↳ android.net.http.SslCertificate.DName

A distinguished name helper class: a 3-tuple of:

  • the most specific common name (CN)
  • the most specific organization (O)
  • the most specific organizational unit (OU)

    Summary

    Public constructors
    DName(dName: String!)

    Creates a new DName from a string.

    Public methods
    open String!

    open String!

    open String!

    open String!

    Public constructors

    DName

    Added in API level 1
    DName(dName: String!)

    Creates a new DName from a string. The attributes are assumed to come in most significant to least significant order which is true of human readable values returned by methods such as X500Principal.getName(). Be aware that the underlying sources of distinguished names such as instances of X509Certificate are encoded in least significant to most significant order, so make sure the value passed here has the expected ordering of attributes.

    Public methods

    getCName

    Added in API level 1
    open fun getCName(): String!
    Return
    String! The most specific Common-name (CN) component of this name

    getDName

    Added in API level 1
    open fun getDName(): String!
    Return
    String! The distinguished name (normally includes CN, O, and OU names)

    getOName

    Added in API level 1
    open fun getOName(): String!
    Return
    String! The most specific Organization (O) component of this name

    getUName

    Added in API level 1
    open fun getUName(): String!
    Return
    String! The most specific Organizational Unit (OU) component of this name