/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.acmpca.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains X.509 extension information for a certificate. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Extensions implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
*/ private java.util.List
* Specifies additional purposes for which the certified public key may be used other than basic purposes indicated
* in the KeyUsage
extension.
*
* 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. *
*/ private java.util.List* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a * base64-encoded value, and the critical flag. For more information, see the Global OID reference database. *
*/ private java.util.List* 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. *
* * @return 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.
*/
public java.util.List
* 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.
*
* 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 void setCertificatePolicies(java.util.Collection
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCertificatePolicies(java.util.Collection)} or {@link #withCertificatePolicies(java.util.Collection)}
* if you want to override the existing values.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Extensions withCertificatePolicies(PolicyInformation... certificatePolicies) {
if (this.certificatePolicies == null) {
setCertificatePolicies(new java.util.ArrayList
* 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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Extensions withCertificatePolicies(java.util.Collection
* Specifies additional purposes for which the certified public key may be used other than basic purposes indicated
* in the
* Specifies additional purposes for which the certified public key may be used other than basic purposes indicated
* in the
* Specifies additional purposes for which the certified public key may be used other than basic purposes indicated
* in the
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setExtendedKeyUsage(java.util.Collection)} or {@link #withExtendedKeyUsage(java.util.Collection)} if you
* want to override the existing values.
*
* Specifies additional purposes for which the certified public key may be used other than basic purposes indicated
* in the
* 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.
*
* 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.
*
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSubjectAlternativeNames(java.util.Collection)} or
* {@link #withSubjectAlternativeNames(java.util.Collection)} if you want to override the existing values.
*
* 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.
*
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a
* base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
*
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier
* (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
*/
public java.util.List
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a
* base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
*
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID),
* a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
*/
public void setCustomExtensions(java.util.Collection
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a
* base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCustomExtensions(java.util.Collection)} or {@link #withCustomExtensions(java.util.Collection)} if you
* want to override the existing values.
*
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID),
* a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Extensions withCustomExtensions(CustomExtension... customExtensions) {
if (this.customExtensions == null) {
setCustomExtensions(new java.util.ArrayList
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a
* base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
*
* Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID),
* a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Extensions withCustomExtensions(java.util.CollectionKeyUsage
extension.
* KeyUsage
extension.
*/
public java.util.ListKeyUsage
extension.
* KeyUsage
extension.
*/
public void setExtendedKeyUsage(java.util.CollectionKeyUsage
extension.
* KeyUsage
extension.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Extensions withExtendedKeyUsage(ExtendedKeyUsage... extendedKeyUsage) {
if (this.extendedKeyUsage == null) {
setExtendedKeyUsage(new java.util.ArrayListKeyUsage
extension.
* KeyUsage
extension.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Extensions withExtendedKeyUsage(java.util.Collection