data class CordaX500Name
X.500 distinguished name data type customised to how Corda uses names. This restricts the attributes to those Corda supports, and requires that organisation, locality and country attributes are specified. See also RFC 4519 for the underlying attribute type definitions
CordaX500Name(commonName: String, organisation: String, locality: String, country: String) CordaX500Name(organisation: String, locality: String, country: String) CordaX500Name(commonName: String?, organisationUnit: String?, organisation: String, locality: String, state: String?, country: String)
X.500 distinguished name data type customised to how Corda uses names. This restricts the attributes to those Corda supports, and requires that organisation, locality and country attributes are specified. See also RFC 4519 for the underlying attribute type definitions |
val commonName: String?
optional name by the which the entity is usually known. Used only for services (for organisations, the organisation property is the name). Corresponds to the "CN" attribute type. |
|
val country: String
country the organisation is in, as an ISO 3166-1 2-letter country code. Corresponds to the "C" attribute type. |
|
val locality: String
locality of the organisation, typically nearest major city. For distributed services this would be where one of the organisations is based. Corresponds to the "L" attribute type. |
|
val organisation: String
name of the organisation. Corresponds to the "O" attribute type. |
|
val organisationUnit: String?
optional name of a unit within the organisation. Corresponds to the "OU" attribute type. |
|
val state: String?
the full name of the state or province the organisation is based in. Corresponds to the "ST" attribute type. |
|
val x500Principal: X500Principal
Return the X500Principal equivalent of this name. |
fun toString(): String |
const val |
|
const val MAX_LENGTH_COMMON_NAME: Int |
|
const val MAX_LENGTH_LOCALITY: Int |
|
const val MAX_LENGTH_ORGANISATION: Int |
|
const val MAX_LENGTH_ORGANISATION_UNIT: Int |
|
const val MAX_LENGTH_STATE: Int |
fun build(principal: X500Principal): CordaX500Name |
|
fun parse(name: String): CordaX500Name |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |