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.

Hooray!

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.