All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.certificatemanager.model.CertificateDetail Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2010-2016 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.certificatemanager.model;

import java.io.Serializable;

/**
 * 

* This structure is returned in the response object of the * DescribeCertificate action. *

*/ public class CertificateDetail implements Serializable, Cloneable { /** *

* Amazon Resource Name (ARN) of the certificate. This is of the form: *

*

* arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 *

*

* For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces. *

*/ private String certificateArn; /** *

* Fully qualified domain name (FQDN), such as www.example.com or * example.com, for the certificate. *

*/ private String domainName; /** *

* One or more domain names (subject alternative names) included in the * certificate request. After the certificate is issued, this list includes * the domain names bound to the public key contained in the certificate. * The subject alternative names include the canonical domain name (CN) of * the certificate and additional domain names that can be used to connect * to the website. *

*/ private java.util.List subjectAlternativeNames; /** *

* References a DomainValidation structure that contains the domain * name in the certificate and the email address that can be used for * validation. *

*/ private java.util.List domainValidationOptions; /** *

* String that contains the serial number of the certificate. *

*/ private String serial; /** *

* The X.500 distinguished name of the entity associated with the public key * contained in the certificate. *

*/ private String subject; /** *

* The X.500 distinguished name of the CA that issued and signed the * certificate. *

*/ private String issuer; /** *

* Time at which the certificate was requested. *

*/ private java.util.Date createdAt; /** *

* Time at which the certificate was issued. *

*/ private java.util.Date issuedAt; /** *

* A CertificateStatus enumeration value that can contain one * of the following: *

    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
*

*/ private String status; /** *

* The time, if any, at which the certificate was revoked. This value exists * only if the certificate has been revoked. *

*/ private java.util.Date revokedAt; /** *

* A RevocationReason enumeration value that indicates why the * certificate was revoked. This value exists only if the certificate has * been revoked. This can be one of the following vales: *

    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
*

*/ private String revocationReason; /** *

* Time before which the certificate is not valid. *

*/ private java.util.Date notBefore; /** *

* Time after which the certificate is not valid. *

*/ private java.util.Date notAfter; /** *

* Asymmetric algorithm used to generate the public and private key pair. * Currently the only supported value is RSA_2048. *

*/ private String keyAlgorithm; /** *

* Algorithm used to generate a signature. Currently the only supported * value is SHA256WITHRSA. *

*/ private String signatureAlgorithm; /** *

* List that identifies ARNs that are using the certificate. A single ACM * Certificate can be used by multiple AWS resources. *

*/ private java.util.List inUseBy; /** *

* Amazon Resource Name (ARN) of the certificate. This is of the form: *

*

* arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 *

*

* For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces. *

* * @param certificateArn * Amazon Resource Name (ARN) of the certificate. This is of the * form:

*

* arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 *

*

* For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces. */ public void setCertificateArn(String certificateArn) { this.certificateArn = certificateArn; } /** *

* Amazon Resource Name (ARN) of the certificate. This is of the form: *

*

* arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 *

*

* For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces. *

* * @return Amazon Resource Name (ARN) of the certificate. This is of the * form:

*

* arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 *

*

* For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces. */ public String getCertificateArn() { return this.certificateArn; } /** *

* Amazon Resource Name (ARN) of the certificate. This is of the form: *

*

* arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 *

*

* For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces. *

* * @param certificateArn * Amazon Resource Name (ARN) of the certificate. This is of the * form:

*

* arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 *

*

* For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withCertificateArn(String certificateArn) { setCertificateArn(certificateArn); return this; } /** *

* Fully qualified domain name (FQDN), such as www.example.com or * example.com, for the certificate. *

* * @param domainName * Fully qualified domain name (FQDN), such as www.example.com or * example.com, for the certificate. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* Fully qualified domain name (FQDN), such as www.example.com or * example.com, for the certificate. *

* * @return Fully qualified domain name (FQDN), such as www.example.com or * example.com, for the certificate. */ public String getDomainName() { return this.domainName; } /** *

* Fully qualified domain name (FQDN), such as www.example.com or * example.com, for the certificate. *

* * @param domainName * Fully qualified domain name (FQDN), such as www.example.com or * example.com, for the certificate. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* One or more domain names (subject alternative names) included in the * certificate request. After the certificate is issued, this list includes * the domain names bound to the public key contained in the certificate. * The subject alternative names include the canonical domain name (CN) of * the certificate and additional domain names that can be used to connect * to the website. *

* * @return One or more domain names (subject alternative names) included in * the certificate request. After the certificate is issued, this * list includes the domain names bound to the public key contained * in the certificate. The subject alternative names include the * canonical domain name (CN) of the certificate and additional * domain names that can be used to connect to the website. */ public java.util.List getSubjectAlternativeNames() { return subjectAlternativeNames; } /** *

* One or more domain names (subject alternative names) included in the * certificate request. After the certificate is issued, this list includes * the domain names bound to the public key contained in the certificate. * The subject alternative names include the canonical domain name (CN) of * the certificate and additional domain names that can be used to connect * to the website. *

* * @param subjectAlternativeNames * One or more domain names (subject alternative names) included in * the certificate request. After the certificate is issued, this * list includes the domain names bound to the public key contained * in the certificate. The subject alternative names include the * canonical domain name (CN) of the certificate and additional * domain names that can be used to connect to the website. */ public void setSubjectAlternativeNames( java.util.Collection subjectAlternativeNames) { if (subjectAlternativeNames == null) { this.subjectAlternativeNames = null; return; } this.subjectAlternativeNames = new java.util.ArrayList( subjectAlternativeNames); } /** *

* One or more domain names (subject alternative names) included in the * certificate request. After the certificate is issued, this list includes * the domain names bound to the public key contained in the certificate. * The subject alternative names include the canonical domain name (CN) of * the certificate and additional domain names that can be used to connect * to the website. *

*

* 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. *

* * @param subjectAlternativeNames * One or more domain names (subject alternative names) included in * the certificate request. After the certificate is issued, this * list includes the domain names bound to the public key contained * in the certificate. The subject alternative names include the * canonical domain name (CN) of the certificate and additional * domain names that can be used to connect to the website. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withSubjectAlternativeNames( String... subjectAlternativeNames) { if (this.subjectAlternativeNames == null) { setSubjectAlternativeNames(new java.util.ArrayList( subjectAlternativeNames.length)); } for (String ele : subjectAlternativeNames) { this.subjectAlternativeNames.add(ele); } return this; } /** *

* One or more domain names (subject alternative names) included in the * certificate request. After the certificate is issued, this list includes * the domain names bound to the public key contained in the certificate. * The subject alternative names include the canonical domain name (CN) of * the certificate and additional domain names that can be used to connect * to the website. *

* * @param subjectAlternativeNames * One or more domain names (subject alternative names) included in * the certificate request. After the certificate is issued, this * list includes the domain names bound to the public key contained * in the certificate. The subject alternative names include the * canonical domain name (CN) of the certificate and additional * domain names that can be used to connect to the website. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withSubjectAlternativeNames( java.util.Collection subjectAlternativeNames) { setSubjectAlternativeNames(subjectAlternativeNames); return this; } /** *

* References a DomainValidation structure that contains the domain * name in the certificate and the email address that can be used for * validation. *

* * @return References a DomainValidation structure that contains the * domain name in the certificate and the email address that can be * used for validation. */ public java.util.List getDomainValidationOptions() { return domainValidationOptions; } /** *

* References a DomainValidation structure that contains the domain * name in the certificate and the email address that can be used for * validation. *

* * @param domainValidationOptions * References a DomainValidation structure that contains the * domain name in the certificate and the email address that can be * used for validation. */ public void setDomainValidationOptions( java.util.Collection domainValidationOptions) { if (domainValidationOptions == null) { this.domainValidationOptions = null; return; } this.domainValidationOptions = new java.util.ArrayList( domainValidationOptions); } /** *

* References a DomainValidation structure that contains the domain * name in the certificate and the email address that can be used for * validation. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setDomainValidationOptions(java.util.Collection)} or * {@link #withDomainValidationOptions(java.util.Collection)} if you want to * override the existing values. *

* * @param domainValidationOptions * References a DomainValidation structure that contains the * domain name in the certificate and the email address that can be * used for validation. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withDomainValidationOptions( DomainValidation... domainValidationOptions) { if (this.domainValidationOptions == null) { setDomainValidationOptions(new java.util.ArrayList( domainValidationOptions.length)); } for (DomainValidation ele : domainValidationOptions) { this.domainValidationOptions.add(ele); } return this; } /** *

* References a DomainValidation structure that contains the domain * name in the certificate and the email address that can be used for * validation. *

* * @param domainValidationOptions * References a DomainValidation structure that contains the * domain name in the certificate and the email address that can be * used for validation. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withDomainValidationOptions( java.util.Collection domainValidationOptions) { setDomainValidationOptions(domainValidationOptions); return this; } /** *

* String that contains the serial number of the certificate. *

* * @param serial * String that contains the serial number of the certificate. */ public void setSerial(String serial) { this.serial = serial; } /** *

* String that contains the serial number of the certificate. *

* * @return String that contains the serial number of the certificate. */ public String getSerial() { return this.serial; } /** *

* String that contains the serial number of the certificate. *

* * @param serial * String that contains the serial number of the certificate. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withSerial(String serial) { setSerial(serial); return this; } /** *

* The X.500 distinguished name of the entity associated with the public key * contained in the certificate. *

* * @param subject * The X.500 distinguished name of the entity associated with the * public key contained in the certificate. */ public void setSubject(String subject) { this.subject = subject; } /** *

* The X.500 distinguished name of the entity associated with the public key * contained in the certificate. *

* * @return The X.500 distinguished name of the entity associated with the * public key contained in the certificate. */ public String getSubject() { return this.subject; } /** *

* The X.500 distinguished name of the entity associated with the public key * contained in the certificate. *

* * @param subject * The X.500 distinguished name of the entity associated with the * public key contained in the certificate. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withSubject(String subject) { setSubject(subject); return this; } /** *

* The X.500 distinguished name of the CA that issued and signed the * certificate. *

* * @param issuer * The X.500 distinguished name of the CA that issued and signed the * certificate. */ public void setIssuer(String issuer) { this.issuer = issuer; } /** *

* The X.500 distinguished name of the CA that issued and signed the * certificate. *

* * @return The X.500 distinguished name of the CA that issued and signed the * certificate. */ public String getIssuer() { return this.issuer; } /** *

* The X.500 distinguished name of the CA that issued and signed the * certificate. *

* * @param issuer * The X.500 distinguished name of the CA that issued and signed the * certificate. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withIssuer(String issuer) { setIssuer(issuer); return this; } /** *

* Time at which the certificate was requested. *

* * @param createdAt * Time at which the certificate was requested. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Time at which the certificate was requested. *

* * @return Time at which the certificate was requested. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Time at which the certificate was requested. *

* * @param createdAt * Time at which the certificate was requested. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Time at which the certificate was issued. *

* * @param issuedAt * Time at which the certificate was issued. */ public void setIssuedAt(java.util.Date issuedAt) { this.issuedAt = issuedAt; } /** *

* Time at which the certificate was issued. *

* * @return Time at which the certificate was issued. */ public java.util.Date getIssuedAt() { return this.issuedAt; } /** *

* Time at which the certificate was issued. *

* * @param issuedAt * Time at which the certificate was issued. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withIssuedAt(java.util.Date issuedAt) { setIssuedAt(issuedAt); return this; } /** *

* A CertificateStatus enumeration value that can contain one * of the following: *

    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
*

* * @param status * A CertificateStatus enumeration value that can * contain one of the following: *
    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
* @see CertificateStatus */ public void setStatus(String status) { this.status = status; } /** *

* A CertificateStatus enumeration value that can contain one * of the following: *

    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
*

* * @return A CertificateStatus enumeration value that can * contain one of the following: *
    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
* @see CertificateStatus */ public String getStatus() { return this.status; } /** *

* A CertificateStatus enumeration value that can contain one * of the following: *

    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
*

* * @param status * A CertificateStatus enumeration value that can * contain one of the following: *
    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
* @return Returns a reference to this object so that method calls can be * chained together. * @see CertificateStatus */ public CertificateDetail withStatus(String status) { setStatus(status); return this; } /** *

* A CertificateStatus enumeration value that can contain one * of the following: *

    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
*

* * @param status * A CertificateStatus enumeration value that can * contain one of the following: *
    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
* @see CertificateStatus */ public void setStatus(CertificateStatus status) { this.status = status.toString(); } /** *

* A CertificateStatus enumeration value that can contain one * of the following: *

    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
*

* * @param status * A CertificateStatus enumeration value that can * contain one of the following: *
    *
  • *

    * PENDING_VALIDATION *

    *
  • *
  • *

    * ISSUED *

    *
  • *
  • *

    * INACTIVE *

    *
  • *
  • *

    * EXPIRED *

    *
  • *
  • *

    * REVOKED *

    *
  • *
  • *

    * FAILED *

    *
  • *
  • *

    * VALIDATION_TIMED_OUT *

    *
  • *
* @return Returns a reference to this object so that method calls can be * chained together. * @see CertificateStatus */ public CertificateDetail withStatus(CertificateStatus status) { setStatus(status); return this; } /** *

* The time, if any, at which the certificate was revoked. This value exists * only if the certificate has been revoked. *

* * @param revokedAt * The time, if any, at which the certificate was revoked. This value * exists only if the certificate has been revoked. */ public void setRevokedAt(java.util.Date revokedAt) { this.revokedAt = revokedAt; } /** *

* The time, if any, at which the certificate was revoked. This value exists * only if the certificate has been revoked. *

* * @return The time, if any, at which the certificate was revoked. This * value exists only if the certificate has been revoked. */ public java.util.Date getRevokedAt() { return this.revokedAt; } /** *

* The time, if any, at which the certificate was revoked. This value exists * only if the certificate has been revoked. *

* * @param revokedAt * The time, if any, at which the certificate was revoked. This value * exists only if the certificate has been revoked. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withRevokedAt(java.util.Date revokedAt) { setRevokedAt(revokedAt); return this; } /** *

* A RevocationReason enumeration value that indicates why the * certificate was revoked. This value exists only if the certificate has * been revoked. This can be one of the following vales: *

    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
*

* * @param revocationReason * A RevocationReason enumeration value that indicates * why the certificate was revoked. This value exists only if the * certificate has been revoked. This can be one of the following * vales: *
    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
* @see RevocationReason */ public void setRevocationReason(String revocationReason) { this.revocationReason = revocationReason; } /** *

* A RevocationReason enumeration value that indicates why the * certificate was revoked. This value exists only if the certificate has * been revoked. This can be one of the following vales: *

    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
*

* * @return A RevocationReason enumeration value that indicates * why the certificate was revoked. This value exists only if the * certificate has been revoked. This can be one of the following * vales: *
    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
* @see RevocationReason */ public String getRevocationReason() { return this.revocationReason; } /** *

* A RevocationReason enumeration value that indicates why the * certificate was revoked. This value exists only if the certificate has * been revoked. This can be one of the following vales: *

    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
*

* * @param revocationReason * A RevocationReason enumeration value that indicates * why the certificate was revoked. This value exists only if the * certificate has been revoked. This can be one of the following * vales: *
    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
* @return Returns a reference to this object so that method calls can be * chained together. * @see RevocationReason */ public CertificateDetail withRevocationReason(String revocationReason) { setRevocationReason(revocationReason); return this; } /** *

* A RevocationReason enumeration value that indicates why the * certificate was revoked. This value exists only if the certificate has * been revoked. This can be one of the following vales: *

    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
*

* * @param revocationReason * A RevocationReason enumeration value that indicates * why the certificate was revoked. This value exists only if the * certificate has been revoked. This can be one of the following * vales: *
    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
* @see RevocationReason */ public void setRevocationReason(RevocationReason revocationReason) { this.revocationReason = revocationReason.toString(); } /** *

* A RevocationReason enumeration value that indicates why the * certificate was revoked. This value exists only if the certificate has * been revoked. This can be one of the following vales: *

    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
*

* * @param revocationReason * A RevocationReason enumeration value that indicates * why the certificate was revoked. This value exists only if the * certificate has been revoked. This can be one of the following * vales: *
    *
  • *

    * UNSPECIFIED *

    *
  • *
  • *

    * KEY_COMPROMISE *

    *
  • *
  • *

    * CA_COMPROMISE *

    *
  • *
  • *

    * AFFILIATION_CHANGED *

    *
  • *
  • *

    * SUPERCEDED *

    *
  • *
  • *

    * CESSATION_OF_OPERATION *

    *
  • *
  • *

    * CERTIFICATE_HOLD *

    *
  • *
  • *

    * REMOVE_FROM_CRL *

    *
  • *
  • *

    * PRIVILEGE_WITHDRAWN *

    *
  • *
  • *

    * A_A_COMPROMISE *

    *
  • *
* @return Returns a reference to this object so that method calls can be * chained together. * @see RevocationReason */ public CertificateDetail withRevocationReason( RevocationReason revocationReason) { setRevocationReason(revocationReason); return this; } /** *

* Time before which the certificate is not valid. *

* * @param notBefore * Time before which the certificate is not valid. */ public void setNotBefore(java.util.Date notBefore) { this.notBefore = notBefore; } /** *

* Time before which the certificate is not valid. *

* * @return Time before which the certificate is not valid. */ public java.util.Date getNotBefore() { return this.notBefore; } /** *

* Time before which the certificate is not valid. *

* * @param notBefore * Time before which the certificate is not valid. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withNotBefore(java.util.Date notBefore) { setNotBefore(notBefore); return this; } /** *

* Time after which the certificate is not valid. *

* * @param notAfter * Time after which the certificate is not valid. */ public void setNotAfter(java.util.Date notAfter) { this.notAfter = notAfter; } /** *

* Time after which the certificate is not valid. *

* * @return Time after which the certificate is not valid. */ public java.util.Date getNotAfter() { return this.notAfter; } /** *

* Time after which the certificate is not valid. *

* * @param notAfter * Time after which the certificate is not valid. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withNotAfter(java.util.Date notAfter) { setNotAfter(notAfter); return this; } /** *

* Asymmetric algorithm used to generate the public and private key pair. * Currently the only supported value is RSA_2048. *

* * @param keyAlgorithm * Asymmetric algorithm used to generate the public and private key * pair. Currently the only supported value is RSA_2048. * @see KeyAlgorithm */ public void setKeyAlgorithm(String keyAlgorithm) { this.keyAlgorithm = keyAlgorithm; } /** *

* Asymmetric algorithm used to generate the public and private key pair. * Currently the only supported value is RSA_2048. *

* * @return Asymmetric algorithm used to generate the public and private key * pair. Currently the only supported value is RSA_2048 * . * @see KeyAlgorithm */ public String getKeyAlgorithm() { return this.keyAlgorithm; } /** *

* Asymmetric algorithm used to generate the public and private key pair. * Currently the only supported value is RSA_2048. *

* * @param keyAlgorithm * Asymmetric algorithm used to generate the public and private key * pair. Currently the only supported value is RSA_2048. * @return Returns a reference to this object so that method calls can be * chained together. * @see KeyAlgorithm */ public CertificateDetail withKeyAlgorithm(String keyAlgorithm) { setKeyAlgorithm(keyAlgorithm); return this; } /** *

* Asymmetric algorithm used to generate the public and private key pair. * Currently the only supported value is RSA_2048. *

* * @param keyAlgorithm * Asymmetric algorithm used to generate the public and private key * pair. Currently the only supported value is RSA_2048. * @see KeyAlgorithm */ public void setKeyAlgorithm(KeyAlgorithm keyAlgorithm) { this.keyAlgorithm = keyAlgorithm.toString(); } /** *

* Asymmetric algorithm used to generate the public and private key pair. * Currently the only supported value is RSA_2048. *

* * @param keyAlgorithm * Asymmetric algorithm used to generate the public and private key * pair. Currently the only supported value is RSA_2048. * @return Returns a reference to this object so that method calls can be * chained together. * @see KeyAlgorithm */ public CertificateDetail withKeyAlgorithm(KeyAlgorithm keyAlgorithm) { setKeyAlgorithm(keyAlgorithm); return this; } /** *

* Algorithm used to generate a signature. Currently the only supported * value is SHA256WITHRSA. *

* * @param signatureAlgorithm * Algorithm used to generate a signature. Currently the only * supported value is SHA256WITHRSA. */ public void setSignatureAlgorithm(String signatureAlgorithm) { this.signatureAlgorithm = signatureAlgorithm; } /** *

* Algorithm used to generate a signature. Currently the only supported * value is SHA256WITHRSA. *

* * @return Algorithm used to generate a signature. Currently the only * supported value is SHA256WITHRSA. */ public String getSignatureAlgorithm() { return this.signatureAlgorithm; } /** *

* Algorithm used to generate a signature. Currently the only supported * value is SHA256WITHRSA. *

* * @param signatureAlgorithm * Algorithm used to generate a signature. Currently the only * supported value is SHA256WITHRSA. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withSignatureAlgorithm(String signatureAlgorithm) { setSignatureAlgorithm(signatureAlgorithm); return this; } /** *

* List that identifies ARNs that are using the certificate. A single ACM * Certificate can be used by multiple AWS resources. *

* * @return List that identifies ARNs that are using the certificate. A * single ACM Certificate can be used by multiple AWS resources. */ public java.util.List getInUseBy() { return inUseBy; } /** *

* List that identifies ARNs that are using the certificate. A single ACM * Certificate can be used by multiple AWS resources. *

* * @param inUseBy * List that identifies ARNs that are using the certificate. A single * ACM Certificate can be used by multiple AWS resources. */ public void setInUseBy(java.util.Collection inUseBy) { if (inUseBy == null) { this.inUseBy = null; return; } this.inUseBy = new java.util.ArrayList(inUseBy); } /** *

* List that identifies ARNs that are using the certificate. A single ACM * Certificate can be used by multiple AWS resources. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setInUseBy(java.util.Collection)} or * {@link #withInUseBy(java.util.Collection)} if you want to override the * existing values. *

* * @param inUseBy * List that identifies ARNs that are using the certificate. A single * ACM Certificate can be used by multiple AWS resources. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withInUseBy(String... inUseBy) { if (this.inUseBy == null) { setInUseBy(new java.util.ArrayList(inUseBy.length)); } for (String ele : inUseBy) { this.inUseBy.add(ele); } return this; } /** *

* List that identifies ARNs that are using the certificate. A single ACM * Certificate can be used by multiple AWS resources. *

* * @param inUseBy * List that identifies ARNs that are using the certificate. A single * ACM Certificate can be used by multiple AWS resources. * @return Returns a reference to this object so that method calls can be * chained together. */ public CertificateDetail withInUseBy(java.util.Collection inUseBy) { setInUseBy(inUseBy); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateArn() != null) sb.append("CertificateArn: " + getCertificateArn() + ","); if (getDomainName() != null) sb.append("DomainName: " + getDomainName() + ","); if (getSubjectAlternativeNames() != null) sb.append("SubjectAlternativeNames: " + getSubjectAlternativeNames() + ","); if (getDomainValidationOptions() != null) sb.append("DomainValidationOptions: " + getDomainValidationOptions() + ","); if (getSerial() != null) sb.append("Serial: " + getSerial() + ","); if (getSubject() != null) sb.append("Subject: " + getSubject() + ","); if (getIssuer() != null) sb.append("Issuer: " + getIssuer() + ","); if (getCreatedAt() != null) sb.append("CreatedAt: " + getCreatedAt() + ","); if (getIssuedAt() != null) sb.append("IssuedAt: " + getIssuedAt() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getRevokedAt() != null) sb.append("RevokedAt: " + getRevokedAt() + ","); if (getRevocationReason() != null) sb.append("RevocationReason: " + getRevocationReason() + ","); if (getNotBefore() != null) sb.append("NotBefore: " + getNotBefore() + ","); if (getNotAfter() != null) sb.append("NotAfter: " + getNotAfter() + ","); if (getKeyAlgorithm() != null) sb.append("KeyAlgorithm: " + getKeyAlgorithm() + ","); if (getSignatureAlgorithm() != null) sb.append("SignatureAlgorithm: " + getSignatureAlgorithm() + ","); if (getInUseBy() != null) sb.append("InUseBy: " + getInUseBy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CertificateDetail == false) return false; CertificateDetail other = (CertificateDetail) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getSubjectAlternativeNames() == null ^ this.getSubjectAlternativeNames() == null) return false; if (other.getSubjectAlternativeNames() != null && other.getSubjectAlternativeNames().equals( this.getSubjectAlternativeNames()) == false) return false; if (other.getDomainValidationOptions() == null ^ this.getDomainValidationOptions() == null) return false; if (other.getDomainValidationOptions() != null && other.getDomainValidationOptions().equals( this.getDomainValidationOptions()) == false) return false; if (other.getSerial() == null ^ this.getSerial() == null) return false; if (other.getSerial() != null && other.getSerial().equals(this.getSerial()) == false) return false; if (other.getSubject() == null ^ this.getSubject() == null) return false; if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false) return false; if (other.getIssuer() == null ^ this.getIssuer() == null) return false; if (other.getIssuer() != null && other.getIssuer().equals(this.getIssuer()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getIssuedAt() == null ^ this.getIssuedAt() == null) return false; if (other.getIssuedAt() != null && other.getIssuedAt().equals(this.getIssuedAt()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getRevokedAt() == null ^ this.getRevokedAt() == null) return false; if (other.getRevokedAt() != null && other.getRevokedAt().equals(this.getRevokedAt()) == false) return false; if (other.getRevocationReason() == null ^ this.getRevocationReason() == null) return false; if (other.getRevocationReason() != null && other.getRevocationReason().equals( this.getRevocationReason()) == false) return false; if (other.getNotBefore() == null ^ this.getNotBefore() == null) return false; if (other.getNotBefore() != null && other.getNotBefore().equals(this.getNotBefore()) == false) return false; if (other.getNotAfter() == null ^ this.getNotAfter() == null) return false; if (other.getNotAfter() != null && other.getNotAfter().equals(this.getNotAfter()) == false) return false; if (other.getKeyAlgorithm() == null ^ this.getKeyAlgorithm() == null) return false; if (other.getKeyAlgorithm() != null && other.getKeyAlgorithm().equals(this.getKeyAlgorithm()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals( this.getSignatureAlgorithm()) == false) return false; if (other.getInUseBy() == null ^ this.getInUseBy() == null) return false; if (other.getInUseBy() != null && other.getInUseBy().equals(this.getInUseBy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn() .hashCode()); hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getSubjectAlternativeNames() == null) ? 0 : getSubjectAlternativeNames().hashCode()); hashCode = prime * hashCode + ((getDomainValidationOptions() == null) ? 0 : getDomainValidationOptions().hashCode()); hashCode = prime * hashCode + ((getSerial() == null) ? 0 : getSerial().hashCode()); hashCode = prime * hashCode + ((getSubject() == null) ? 0 : getSubject().hashCode()); hashCode = prime * hashCode + ((getIssuer() == null) ? 0 : getIssuer().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getIssuedAt() == null) ? 0 : getIssuedAt().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getRevokedAt() == null) ? 0 : getRevokedAt().hashCode()); hashCode = prime * hashCode + ((getRevocationReason() == null) ? 0 : getRevocationReason() .hashCode()); hashCode = prime * hashCode + ((getNotBefore() == null) ? 0 : getNotBefore().hashCode()); hashCode = prime * hashCode + ((getNotAfter() == null) ? 0 : getNotAfter().hashCode()); hashCode = prime * hashCode + ((getKeyAlgorithm() == null) ? 0 : getKeyAlgorithm() .hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); hashCode = prime * hashCode + ((getInUseBy() == null) ? 0 : getInUseBy().hashCode()); return hashCode; } @Override public CertificateDetail clone() { try { return (CertificateDetail) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy