lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 1

SslCertificate.DName

public class SslCertificate.DName
extends Object

java.lang.Object
   ↳ 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

      SslCertificate.DName(String dName)

      Creates a new DName from a string.

      Public methods

      String getCName()
      String getDName()
      String getOName()
      String getUName()

      Inherited methods

      Public constructors

      SslCertificate.DName

      added in API level 1
      public SslCertificate.DName (String dName)

      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.

      Parameters
      dName String

      Public methods

      getCName

      added in API level 1
      public String getCName ()

      Returns
      String The most specific Common-name (CN) component of this name

      getDName

      added in API level 1
      public String getDName ()

      Returns
      String The distinguished name (normally includes CN, O, and OU names)

      getOName

      added in API level 1
      public String getOName ()

      Returns
      String The most specific Organization (O) component of this name

      getUName

      added in API level 1
      public String getUName ()

      Returns
      String The most specific Organizational Unit (OU) component of this name