Class GeneralName
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GeneralName.Builder,GeneralName>
Describes an ASN.1 X.400 GeneralName as defined in RFC 5280. Only one of the following naming options should be
provided.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneralName.Builderbuilder()final DistinguishedNameContains information about the certificate subject.final StringdnsName()RepresentsGeneralNameas a DNS name.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static GeneralNamefromDirectoryName(Consumer<DistinguishedName.Builder> directoryName) Create an instance of this class withdirectoryName()initialized to the given value.static GeneralNamefromDirectoryName(DistinguishedName directoryName) Create an instance of this class withdirectoryName()initialized to the given value.static GeneralNamefromDnsName(String dnsName) Create an instance of this class withdnsName()initialized to the given value.static GeneralNamefromIpAddress(String ipAddress) Create an instance of this class withipAddress()initialized to the given value.static GeneralNamefromOtherName(Consumer<OtherName.Builder> otherName) Create an instance of this class withotherName()initialized to the given value.static GeneralNamefromOtherName(OtherName otherName) Create an instance of this class withotherName()initialized to the given value.static GeneralNamefromRegisteredId(String registeredId) Create an instance of this class withregisteredId()initialized to the given value.static GeneralNamefromRfc822Name(String rfc822Name) Create an instance of this class withrfc822Name()initialized to the given value.static GeneralNamefromUniformResourceIdentifier(String uniformResourceIdentifier) Create an instance of this class withuniformResourceIdentifier()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringRepresentsGeneralNameas an IPv4 or IPv6 address.final OtherNameRepresentsGeneralNameusing anOtherNameobject.final StringRepresentsGeneralNameas an object identifier (OID).final StringRepresentsGeneralNameas an RFC 822 email address.static Class<? extends GeneralName.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.final StringRepresentsGeneralNameas a URI.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
directoryName
Contains information about the certificate subject. The
Subjectfield 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. TheSubjectmust 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.- Returns:
- Contains information about the certificate subject. The
Subjectfield 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. TheSubjectmust 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.
-
dnsName
Represents
GeneralNameas a DNS name.- Returns:
- Represents
GeneralNameas a DNS name.
-
ipAddress
Represents
GeneralNameas an IPv4 or IPv6 address.- Returns:
- Represents
GeneralNameas an IPv4 or IPv6 address.
-
otherName
Represents
GeneralNameusing anOtherNameobject.- Returns:
- Represents
GeneralNameusing anOtherNameobject.
-
registeredId
Represents
GeneralNameas an object identifier (OID).- Returns:
- Represents
GeneralNameas an object identifier (OID).
-
rfc822Name
-
uniformResourceIdentifier
Represents
GeneralNameas a URI.- Returns:
- Represents
GeneralNameas a URI.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GeneralName.Builder,GeneralName> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromDirectoryName
Create an instance of this class withdirectoryName()initialized to the given value.Contains information about the certificate subject. The
Subjectfield 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. TheSubjectmust 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.- Parameters:
directoryName- Contains information about the certificate subject. TheSubjectfield 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. TheSubjectmust 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.
-
fromDirectoryName
Create an instance of this class withdirectoryName()initialized to the given value.Contains information about the certificate subject. The
Subjectfield 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. TheSubjectmust 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.- Parameters:
directoryName- Contains information about the certificate subject. TheSubjectfield 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. TheSubjectmust 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.
-
fromDnsName
Create an instance of this class withdnsName()initialized to the given value.Represents
GeneralNameas a DNS name.- Parameters:
dnsName- RepresentsGeneralNameas a DNS name.
-
fromIpAddress
Create an instance of this class withipAddress()initialized to the given value.Represents
GeneralNameas an IPv4 or IPv6 address.- Parameters:
ipAddress- RepresentsGeneralNameas an IPv4 or IPv6 address.
-
fromOtherName
Create an instance of this class withotherName()initialized to the given value.Represents
GeneralNameusing anOtherNameobject.- Parameters:
otherName- RepresentsGeneralNameusing anOtherNameobject.
-
fromOtherName
Create an instance of this class withotherName()initialized to the given value.Represents
GeneralNameusing anOtherNameobject.- Parameters:
otherName- RepresentsGeneralNameusing anOtherNameobject.
-
fromRegisteredId
Create an instance of this class withregisteredId()initialized to the given value.Represents
GeneralNameas an object identifier (OID).- Parameters:
registeredId- RepresentsGeneralNameas an object identifier (OID).
-
fromRfc822Name
Create an instance of this class withrfc822Name()initialized to the given value.Represents
GeneralNameas an RFC 822 email address.- Parameters:
rfc822Name- RepresentsGeneralNameas an RFC 822 email address.
-
fromUniformResourceIdentifier
Create an instance of this class withuniformResourceIdentifier()initialized to the given value.Represents
GeneralNameas a URI.- Parameters:
uniformResourceIdentifier- RepresentsGeneralNameas a URI.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beGeneralName.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beGeneralName.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-