@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ASN1Subject extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ASN1Subject() |
Modifier and Type | Method and Description |
---|---|
ASN1Subject |
clone() |
boolean |
equals(Object obj) |
String |
getCommonName()
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length
limit.
|
String |
getCountry()
Two-digit code that specifies the country in which the certificate subject located.
|
List<CustomAttribute> |
getCustomAttributes()
|
String |
getDistinguishedNameQualifier()
Disambiguating information for the certificate subject.
|
String |
getGenerationQualifier()
Typically a qualifier appended to the name of an individual.
|
String |
getGivenName()
First name.
|
String |
getInitials()
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 |
getLocality()
The locality (such as a city or town) in which the certificate subject is located.
|
String |
getOrganization()
Legal name of the organization with which the certificate subject is affiliated.
|
String |
getOrganizationalUnit()
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is
affiliated.
|
String |
getPseudonym()
Typically a shortened version of a longer GivenName.
|
String |
getSerialNumber()
The certificate serial number.
|
String |
getState()
State in which the subject of the certificate is located.
|
String |
getSurname()
Family name.
|
String |
getTitle()
A title such as Mr.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommonName(String commonName)
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length
limit.
|
void |
setCountry(String country)
Two-digit code that specifies the country in which the certificate subject located.
|
void |
setCustomAttributes(Collection<CustomAttribute> customAttributes)
|
void |
setDistinguishedNameQualifier(String distinguishedNameQualifier)
Disambiguating information for the certificate subject.
|
void |
setGenerationQualifier(String generationQualifier)
Typically a qualifier appended to the name of an individual.
|
void |
setGivenName(String givenName)
First name.
|
void |
setInitials(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.
|
void |
setLocality(String locality)
The locality (such as a city or town) in which the certificate subject is located.
|
void |
setOrganization(String organization)
Legal name of the organization with which the certificate subject is affiliated.
|
void |
setOrganizationalUnit(String organizationalUnit)
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is
affiliated.
|
void |
setPseudonym(String pseudonym)
Typically a shortened version of a longer GivenName.
|
void |
setSerialNumber(String serialNumber)
The certificate serial number.
|
void |
setState(String state)
State in which the subject of the certificate is located.
|
void |
setSurname(String surname)
Family name.
|
void |
setTitle(String title)
A title such as Mr.
|
String |
toString()
Returns a string representation of this object.
|
ASN1Subject |
withCommonName(String commonName)
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length
limit.
|
ASN1Subject |
withCountry(String country)
Two-digit code that specifies the country in which the certificate subject located.
|
ASN1Subject |
withCustomAttributes(Collection<CustomAttribute> customAttributes)
|
ASN1Subject |
withCustomAttributes(CustomAttribute... customAttributes)
|
ASN1Subject |
withDistinguishedNameQualifier(String distinguishedNameQualifier)
Disambiguating information for the certificate subject.
|
ASN1Subject |
withGenerationQualifier(String generationQualifier)
Typically a qualifier appended to the name of an individual.
|
ASN1Subject |
withGivenName(String givenName)
First name.
|
ASN1Subject |
withInitials(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.
|
ASN1Subject |
withLocality(String locality)
The locality (such as a city or town) in which the certificate subject is located.
|
ASN1Subject |
withOrganization(String organization)
Legal name of the organization with which the certificate subject is affiliated.
|
ASN1Subject |
withOrganizationalUnit(String organizationalUnit)
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is
affiliated.
|
ASN1Subject |
withPseudonym(String pseudonym)
Typically a shortened version of a longer GivenName.
|
ASN1Subject |
withSerialNumber(String serialNumber)
The certificate serial number.
|
ASN1Subject |
withState(String state)
State in which the subject of the certificate is located.
|
ASN1Subject |
withSurname(String surname)
Family name.
|
ASN1Subject |
withTitle(String title)
A title such as Mr.
|
public void setCountry(String country)
Two-digit code that specifies the country in which the certificate subject located.
country
- Two-digit code that specifies the country in which the certificate subject located.public String getCountry()
Two-digit code that specifies the country in which the certificate subject located.
public ASN1Subject withCountry(String country)
Two-digit code that specifies the country in which the certificate subject located.
country
- Two-digit code that specifies the country in which the certificate subject located.public void setOrganization(String organization)
Legal name of the organization with which the certificate subject is affiliated.
organization
- Legal name of the organization with which the certificate subject is affiliated.public String getOrganization()
Legal name of the organization with which the certificate subject is affiliated.
public ASN1Subject withOrganization(String organization)
Legal name of the organization with which the certificate subject is affiliated.
organization
- Legal name of the organization with which the certificate subject is affiliated.public void setOrganizationalUnit(String organizationalUnit)
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
organizationalUnit
- A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is
affiliated.public String getOrganizationalUnit()
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
public ASN1Subject withOrganizationalUnit(String organizationalUnit)
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
organizationalUnit
- A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is
affiliated.public void setDistinguishedNameQualifier(String distinguishedNameQualifier)
Disambiguating information for the certificate subject.
distinguishedNameQualifier
- Disambiguating information for the certificate subject.public String getDistinguishedNameQualifier()
Disambiguating information for the certificate subject.
public ASN1Subject withDistinguishedNameQualifier(String distinguishedNameQualifier)
Disambiguating information for the certificate subject.
distinguishedNameQualifier
- Disambiguating information for the certificate subject.public void setState(String state)
State in which the subject of the certificate is located.
state
- State in which the subject of the certificate is located.public String getState()
State in which the subject of the certificate is located.
public ASN1Subject withState(String state)
State in which the subject of the certificate is located.
state
- State in which the subject of the certificate is located.public void setCommonName(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.
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.
public String getCommonName()
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 ASN1Subject withCommonName(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.
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.
public void setSerialNumber(String serialNumber)
The certificate serial number.
serialNumber
- The certificate serial number.public String getSerialNumber()
The certificate serial number.
public ASN1Subject withSerialNumber(String serialNumber)
The certificate serial number.
serialNumber
- The certificate serial number.public void setLocality(String locality)
The locality (such as a city or town) in which the certificate subject is located.
locality
- The locality (such as a city or town) in which the certificate subject is located.public String getLocality()
The locality (such as a city or town) in which the certificate subject is located.
public ASN1Subject withLocality(String locality)
The locality (such as a city or town) in which the certificate subject is located.
locality
- The locality (such as a city or town) in which the certificate subject is located.public void setTitle(String title)
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
title
- A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.public String getTitle()
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
public ASN1Subject withTitle(String title)
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
title
- A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.public void setSurname(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.
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 String getSurname()
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 ASN1Subject withSurname(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.
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 void setGivenName(String givenName)
First name.
givenName
- First name.public String getGivenName()
First name.
public ASN1Subject withGivenName(String givenName)
First name.
givenName
- First name.public void setInitials(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.
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 String getInitials()
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 ASN1Subject withInitials(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.
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 void setPseudonym(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.
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 String getPseudonym()
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 ASN1Subject withPseudonym(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.
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 void setGenerationQualifier(String generationQualifier)
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
generationQualifier
- Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for
senior, and III for third.public String getGenerationQualifier()
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
public ASN1Subject withGenerationQualifier(String generationQualifier)
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
generationQualifier
- Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for
senior, and III for third.public List<CustomAttribute> getCustomAttributes()
Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
public void setCustomAttributes(Collection<CustomAttribute> customAttributes)
Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
customAttributes
- Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
public ASN1Subject withCustomAttributes(CustomAttribute... customAttributes)
Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
NOTE: This method appends the values to the existing list (if any). Use
setCustomAttributes(java.util.Collection)
or withCustomAttributes(java.util.Collection)
if you
want to override the existing values.
customAttributes
- Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
public ASN1Subject withCustomAttributes(Collection<CustomAttribute> customAttributes)
Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
customAttributes
- Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID).
Custom attributes cannot be used in combination with standard attributes.
public String toString()
toString
in class Object
Object.toString()
public ASN1Subject clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.