public 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
Modifier and Type | Class and Description |
---|---|
static class |
CordaX500Name.Companion |
Modifier and Type | Field and Description |
---|---|
static CordaX500Name.Companion |
Companion |
static int |
LENGTH_COUNTRY
Deprecated.
|
static int |
MAX_LENGTH_COMMON_NAME |
static int |
MAX_LENGTH_LOCALITY |
static int |
MAX_LENGTH_ORGANISATION |
static int |
MAX_LENGTH_ORGANISATION_UNIT |
static int |
MAX_LENGTH_STATE |
Constructor and Description |
---|
CordaX500Name(java.lang.String commonName,
java.lang.String organisationUnit,
java.lang.String organisation,
java.lang.String locality,
java.lang.String state,
java.lang.String country)
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(java.lang.String commonName,
java.lang.String organisation,
java.lang.String locality,
java.lang.String country) |
CordaX500Name(java.lang.String organisation,
java.lang.String locality,
java.lang.String country) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
component1()
optional name by the which the entity is usually known.
|
java.lang.String |
component2()
optional name of a unit within the
|
java.lang.String |
component3()
name of the organisation.
|
java.lang.String |
component4()
locality of the organisation,
|
java.lang.String |
component5()
the full name of the state or province the organisation is based in.
|
java.lang.String |
component6()
country the organisation is in,
|
CordaX500Name |
copy(java.lang.String commonName,
java.lang.String organisationUnit,
java.lang.String organisation,
java.lang.String locality,
java.lang.String state,
java.lang.String country)
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
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getCommonName()
optional name by the which the entity is usually known.
|
java.lang.String |
getCountry()
country the organisation is in,
|
java.lang.String |
getLocality()
locality of the organisation,
|
java.lang.String |
getOrganisation()
name of the organisation.
|
java.lang.String |
getOrganisationUnit()
optional name of a unit within the
|
java.lang.String |
getState()
the full name of the state or province the organisation is based in.
|
javax.security.auth.x500.X500Principal |
getX500Principal()
Return the X500Principal equivalent of this name.
|
int |
hashCode() |
java.lang.String |
toString() |
public static int LENGTH_COUNTRY
public static int MAX_LENGTH_ORGANISATION
public static int MAX_LENGTH_LOCALITY
public static int MAX_LENGTH_STATE
public static int MAX_LENGTH_ORGANISATION_UNIT
public static int MAX_LENGTH_COMMON_NAME
public static CordaX500Name.Companion Companion
public CordaX500Name(java.lang.String commonName, java.lang.String organisationUnit, java.lang.String organisation, java.lang.String locality, java.lang.String state, java.lang.String country)
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
commonName
- optional name by the which the entity is usually known. Used only for services (fororganisations, the organisation property is the name). Corresponds to the "CN" attribute type.organisationUnit
- optional name of a unit within the organisation. Corresponds to the "OU" attribute type.organisation
- name of the organisation. Corresponds to the "O" attribute type.locality
- locality of the organisation, typically nearest major city. For distributed services this would bewhere one of the organisations is based. Corresponds to the "L" attribute type.state
- the full name of the state or province the organisation is based in. Corresponds to the "ST"attribute type.country
- country the organisation is in, as an ISO 3166-1 2-letter country code. Corresponds to the "C"attribute type.public CordaX500Name(java.lang.String commonName, java.lang.String organisation, java.lang.String locality, java.lang.String country)
public CordaX500Name(java.lang.String organisation, java.lang.String locality, java.lang.String country)
organisation
- name of the organisation.locality
- locality of the organisation, typically nearest major city.country
- country the organisation is in, as an ISO 3166-1 2-letter country code.public javax.security.auth.x500.X500Principal getX500Principal()
Return the X500Principal equivalent of this name.
public java.lang.String toString()
public java.lang.String getCommonName()
optional name by the which the entity is usually known.
Used only for services (fororganisations, the organisation property is the name). Corresponds to the "CN" attribute type.
public java.lang.String getOrganisationUnit()
optional name of a unit within the
organisation. Corresponds to the "OU" attribute type.
public java.lang.String getOrganisation()
name of the organisation.
Corresponds to the "O" attribute type.
public java.lang.String getLocality()
locality of the organisation,
typically nearest major city. For distributed services this would bewhere one of the organisations is based. Corresponds to the "L" attribute type.
public java.lang.String getState()
the full name of the state or province the organisation is based in.
Corresponds to the "ST"attribute type.
public java.lang.String getCountry()
country the organisation is in,
as an ISO 3166-1 2-letter country code. Corresponds to the "C"attribute type.
public java.lang.String component1()
optional name by the which the entity is usually known.
Used only for services (fororganisations, the organisation property is the name). Corresponds to the "CN" attribute type.
public java.lang.String component2()
optional name of a unit within the
organisation. Corresponds to the "OU" attribute type.
public java.lang.String component3()
name of the organisation.
Corresponds to the "O" attribute type.
public java.lang.String component4()
locality of the organisation,
typically nearest major city. For distributed services this would bewhere one of the organisations is based. Corresponds to the "L" attribute type.
public java.lang.String component5()
the full name of the state or province the organisation is based in.
Corresponds to the "ST"attribute type.
public java.lang.String component6()
country the organisation is in,
as an ISO 3166-1 2-letter country code. Corresponds to the "C"attribute type.
public CordaX500Name copy(java.lang.String commonName, java.lang.String organisationUnit, java.lang.String organisation, java.lang.String locality, java.lang.String state, java.lang.String country)
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
public int hashCode()
public boolean equals(java.lang.Object p)