Android APIs
public class

SslCertificate.DName

extends Object
java.lang.Object
   ↳ android.net.http.SslCertificate.DName

Class Overview

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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SslCertificate.DName (String dName)

Added in API level 1

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

public String getCName ()

Added in API level 1

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

public String getDName ()

Added in API level 1

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

public String getOName ()

Added in API level 1

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

public String getUName ()

Added in API level 1

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