Stay organized with collections
Save and categorize content based on your preferences.
DName
open class 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 |
Creates a new DName from a string.
|
Public constructors
DName
DName(dName: String!)
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
getCName
open fun getCName(): String!
Return |
String! |
The most specific Common-name (CN) component of this name |
getDName
open fun getDName(): String!
Return |
String! |
The distinguished name (normally includes CN, O, and OU names) |
getOName
open fun getOName(): String!
Return |
String! |
The most specific Organization (O) component of this name |
getUName
open fun getUName(): String!
Return |
String! |
The most specific Organizational Unit (OU) component of this name |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SslCertificate.DName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDName\n=====\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/http/SslCertificate.DName \"View this page in Java\") \n\n```\nopen class DName\n```\n\n|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| โณ | [android.net.http.SslCertificate.DName](#) |\n\nA distinguished name helper class: a 3-tuple of:\n\n- the most specific common name (CN)\n- the most specific organization (O)\n- the most specific organizational unit (OU)\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DName](#DName(kotlin.String))`(`dName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Creates a new `DName` from a string. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getCName](#getCName())`()` \u003cbr /\u003e |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getDName](#getDName())`()` \u003cbr /\u003e |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getOName](#getOName())`()` \u003cbr /\u003e |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getUName](#getUName())`()` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### DName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDName(dName: String!)\n```\n\nCreates 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.\n\nPublic methods\n--------------\n\n### getCName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getCName(): String!\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | The most specific Common-name (CN) component of this name |\n\n### getDName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getDName(): String!\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | The distinguished name (normally includes CN, O, and OU names) |\n\n### getOName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getOName(): String!\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | The most specific Organization (O) component of this name |\n\n### getUName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getUName(): String!\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | The most specific Organizational Unit (OU) component of this name |"]]