@Generated(value="software.amazon.awssdk:codegen") public final class Extensions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Extensions.Builder,Extensions>
Contains X.509 extension information for a certificate.
Modifier and Type | Class and Description |
---|---|
static interface |
Extensions.Builder |
Modifier and Type | Method and Description |
---|---|
static Extensions.Builder |
builder() |
List<PolicyInformation> |
certificatePolicies()
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID)
and optional qualifiers.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
List<ExtendedKeyUsage> |
extendedKeyUsage()
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated
in the
KeyUsage extension. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCertificatePolicies()
Returns true if the CertificatePolicies property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasExtendedKeyUsage()
Returns true if the ExtendedKeyUsage property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasSubjectAlternativeNames()
Returns true if the SubjectAlternativeNames property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
KeyUsage |
keyUsage()
Returns the value of the KeyUsage property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Extensions.Builder> |
serializableBuilderClass() |
List<GeneralName> |
subjectAlternativeNames()
The subject alternative name extension allows identities to be bound to the subject of the certificate.
|
Extensions.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final boolean hasCertificatePolicies()
public final List<PolicyInformation> certificatePolicies()
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCertificatePolicies()
to see if a value was sent in this field.
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
public final boolean hasExtendedKeyUsage()
public final List<ExtendedKeyUsage> extendedKeyUsage()
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated
in the KeyUsage
extension.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasExtendedKeyUsage()
to see if a value was sent in this field.
KeyUsage
extension.public final KeyUsage keyUsage()
public final boolean hasSubjectAlternativeNames()
public final List<GeneralName> subjectAlternativeNames()
The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSubjectAlternativeNames()
to see if a value was sent in this field.
public Extensions.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Extensions.Builder,Extensions>
public static Extensions.Builder builder()
public static Class<? extends Extensions.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()