Skip to content

Most visited

Recently visited



public class SslCertificate.DName
extends Object


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

      From class java.lang.Object

      Public constructors


      added in API level 1
      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.

      dName String

      Public methods


      added in API level 1
      String getCName ()

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


      added in API level 1
      String getDName ()

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


      added in API level 1
      String getOName ()

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


      added in API level 1
      String getUName ()

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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)