@Generated(value="software.amazon.awssdk:codegen") public final class ASN1Subject extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ASN1Subject.Builder,ASN1Subject>
Contains information about the certificate subject. The Subject field in the certificate identifies the
entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or
service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative
distinguished names (RDNs). The RDNs are separated by commas in the certificate.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ASN1Subject.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ASN1Subject.Builder |
builder() |
String |
commonName()
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length
limit.
|
String |
country()
Two-digit code that specifies the country in which the certificate subject located.
|
String |
distinguishedNameQualifier()
Disambiguating information for the certificate subject.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
generationQualifier()
Typically a qualifier appended to the name of an individual.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
givenName()
First name.
|
int |
hashCode() |
String |
initials()
Concatenation that typically contains the first letter of the GivenName, the first letter of the middle
name if one exists, and the first letter of the Surname.
|
String |
locality()
The locality (such as a city or town) in which the certificate subject is located.
|
String |
organization()
Legal name of the organization with which the certificate subject is affiliated.
|
String |
organizationalUnit()
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is
affiliated.
|
String |
pseudonym()
Typically a shortened version of a longer GivenName.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ASN1Subject.Builder> |
serializableBuilderClass() |
String |
serialNumber()
The certificate serial number.
|
String |
state()
State in which the subject of the certificate is located.
|
String |
surname()
Family name.
|
String |
title()
A title such as Mr.
|
ASN1Subject.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String country()
Two-digit code that specifies the country in which the certificate subject located.
public final String organization()
Legal name of the organization with which the certificate subject is affiliated.
public final String organizationalUnit()
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
public final String distinguishedNameQualifier()
Disambiguating information for the certificate subject.
public final String state()
State in which the subject of the certificate is located.
public final String commonName()
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
public final String serialNumber()
The certificate serial number.
public final String locality()
The locality (such as a city or town) in which the certificate subject is located.
public final String title()
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
public final String surname()
Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
public final String givenName()
First name.
public final String initials()
Concatenation that typically contains the first letter of the GivenName, the first letter of the middle name if one exists, and the first letter of the Surname.
public final String pseudonym()
Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
public final String generationQualifier()
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
public ASN1Subject.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ASN1Subject.Builder,ASN1Subject>public static ASN1Subject.Builder builder()
public static Class<? extends ASN1Subject.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.