Skip to content

Most visited

Recently visited

navigation

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

      From class java.lang.Object

      Public constructors

      SslCertificate.DName

      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.

      Parameters
      dName String

      Public methods

      getCName

      added in API level 1
      String getCName ()

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

      getDName

      added in API level 1
      String getDName ()

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

      getOName

      added in API level 1
      String getOName ()

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

      getUName

      added in API level 1
      String getUName ()

      Returns
      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

Hooray!

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)