@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IssueCertificateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
IssueCertificateRequest() |
| Modifier and Type | Method and Description |
|---|---|
IssueCertificateRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCertificateAuthorityArn()
The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
|
ByteBuffer |
getCsr()
The certificate signing request (CSR) for the certificate you want to issue.
|
String |
getIdempotencyToken()
Custom string that can be used to distinguish between calls to the IssueCertificate action.
|
String |
getSigningAlgorithm()
The name of the algorithm that will be used to sign the certificate to be issued.
|
String |
getTemplateArn()
Specifies a custom configuration template to use when issuing a certificate.
|
Validity |
getValidity()
The type of the validity period.
|
int |
hashCode() |
void |
setCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
|
void |
setCsr(ByteBuffer csr)
The certificate signing request (CSR) for the certificate you want to issue.
|
void |
setIdempotencyToken(String idempotencyToken)
Custom string that can be used to distinguish between calls to the IssueCertificate action.
|
void |
setSigningAlgorithm(String signingAlgorithm)
The name of the algorithm that will be used to sign the certificate to be issued.
|
void |
setTemplateArn(String templateArn)
Specifies a custom configuration template to use when issuing a certificate.
|
void |
setValidity(Validity validity)
The type of the validity period.
|
String |
toString()
Returns a string representation of this object.
|
IssueCertificateRequest |
withCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
|
IssueCertificateRequest |
withCsr(ByteBuffer csr)
The certificate signing request (CSR) for the certificate you want to issue.
|
IssueCertificateRequest |
withIdempotencyToken(String idempotencyToken)
Custom string that can be used to distinguish between calls to the IssueCertificate action.
|
IssueCertificateRequest |
withSigningAlgorithm(SigningAlgorithm signingAlgorithm)
The name of the algorithm that will be used to sign the certificate to be issued.
|
IssueCertificateRequest |
withSigningAlgorithm(String signingAlgorithm)
The name of the algorithm that will be used to sign the certificate to be issued.
|
IssueCertificateRequest |
withTemplateArn(String templateArn)
Specifies a custom configuration template to use when issuing a certificate.
|
IssueCertificateRequest |
withValidity(Validity validity)
The type of the validity period.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
certificateAuthorityArn - The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority. This
must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
public String getCertificateAuthorityArn()
The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
public IssueCertificateRequest withCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
certificateAuthorityArn - The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority. This
must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
public void setCsr(ByteBuffer csr)
The certificate signing request (CSR) for the certificate you want to issue. You can use the following OpenSSL command to create the CSR and a 2048 bit RSA private key.
openssl req -new -newkey rsa:2048 -days 365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. The usr_cert block in
the configuration file contains your X509 version 3 extensions.
openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
csr - The certificate signing request (CSR) for the certificate you want to issue. You can use the following
OpenSSL command to create the CSR and a 2048 bit RSA private key.
openssl req -new -newkey rsa:2048 -days 365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. The usr_cert
block in the configuration file contains your X509 version 3 extensions.
openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
public ByteBuffer getCsr()
The certificate signing request (CSR) for the certificate you want to issue. You can use the following OpenSSL command to create the CSR and a 2048 bit RSA private key.
openssl req -new -newkey rsa:2048 -days 365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. The usr_cert block in
the configuration file contains your X509 version 3 extensions.
openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer.
Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
openssl req -new -newkey rsa:2048 -days 365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. The usr_cert
block in the configuration file contains your X509 version 3 extensions.
openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
public IssueCertificateRequest withCsr(ByteBuffer csr)
The certificate signing request (CSR) for the certificate you want to issue. You can use the following OpenSSL command to create the CSR and a 2048 bit RSA private key.
openssl req -new -newkey rsa:2048 -days 365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. The usr_cert block in
the configuration file contains your X509 version 3 extensions.
openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
csr - The certificate signing request (CSR) for the certificate you want to issue. You can use the following
OpenSSL command to create the CSR and a 2048 bit RSA private key.
openssl req -new -newkey rsa:2048 -days 365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. The usr_cert
block in the configuration file contains your X509 version 3 extensions.
openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
public void setSigningAlgorithm(String signingAlgorithm)
The name of the algorithm that will be used to sign the certificate to be issued.
signingAlgorithm - The name of the algorithm that will be used to sign the certificate to be issued.SigningAlgorithmpublic String getSigningAlgorithm()
The name of the algorithm that will be used to sign the certificate to be issued.
SigningAlgorithmpublic IssueCertificateRequest withSigningAlgorithm(String signingAlgorithm)
The name of the algorithm that will be used to sign the certificate to be issued.
signingAlgorithm - The name of the algorithm that will be used to sign the certificate to be issued.SigningAlgorithmpublic IssueCertificateRequest withSigningAlgorithm(SigningAlgorithm signingAlgorithm)
The name of the algorithm that will be used to sign the certificate to be issued.
signingAlgorithm - The name of the algorithm that will be used to sign the certificate to be issued.SigningAlgorithmpublic void setTemplateArn(String templateArn)
Specifies a custom configuration template to use when issuing a certificate. If this parameter is not provided,
ACM Private CA defaults to the EndEntityCertificate/V1 template.
The following service-owned TemplateArn values are supported by ACM Private CA:
arn:aws:acm-pca:::template/EndEntityCertificate/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen0/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen1/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen2/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen3/V1
arn:aws:acm-pca:::template/RootCACertificate/V1
For more information, see Using Templates.
templateArn - Specifies a custom configuration template to use when issuing a certificate. If this parameter is not
provided, ACM Private CA defaults to the EndEntityCertificate/V1 template.
The following service-owned TemplateArn values are supported by ACM Private CA:
arn:aws:acm-pca:::template/EndEntityCertificate/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen0/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen1/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen2/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen3/V1
arn:aws:acm-pca:::template/RootCACertificate/V1
For more information, see Using Templates.
public String getTemplateArn()
Specifies a custom configuration template to use when issuing a certificate. If this parameter is not provided,
ACM Private CA defaults to the EndEntityCertificate/V1 template.
The following service-owned TemplateArn values are supported by ACM Private CA:
arn:aws:acm-pca:::template/EndEntityCertificate/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen0/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen1/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen2/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen3/V1
arn:aws:acm-pca:::template/RootCACertificate/V1
For more information, see Using Templates.
EndEntityCertificate/V1 template.
The following service-owned TemplateArn values are supported by ACM Private CA:
arn:aws:acm-pca:::template/EndEntityCertificate/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen0/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen1/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen2/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen3/V1
arn:aws:acm-pca:::template/RootCACertificate/V1
For more information, see Using Templates.
public IssueCertificateRequest withTemplateArn(String templateArn)
Specifies a custom configuration template to use when issuing a certificate. If this parameter is not provided,
ACM Private CA defaults to the EndEntityCertificate/V1 template.
The following service-owned TemplateArn values are supported by ACM Private CA:
arn:aws:acm-pca:::template/EndEntityCertificate/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen0/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen1/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen2/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen3/V1
arn:aws:acm-pca:::template/RootCACertificate/V1
For more information, see Using Templates.
templateArn - Specifies a custom configuration template to use when issuing a certificate. If this parameter is not
provided, ACM Private CA defaults to the EndEntityCertificate/V1 template.
The following service-owned TemplateArn values are supported by ACM Private CA:
arn:aws:acm-pca:::template/EndEntityCertificate/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen0/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen1/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen2/V1
arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen3/V1
arn:aws:acm-pca:::template/RootCACertificate/V1
For more information, see Using Templates.
public void setValidity(Validity validity)
The type of the validity period.
validity - The type of the validity period.public Validity getValidity()
The type of the validity period.
public IssueCertificateRequest withValidity(Validity validity)
The type of the validity period.
validity - The type of the validity period.public void setIdempotencyToken(String idempotencyToken)
Custom string that can be used to distinguish between calls to the IssueCertificate action. Idempotency tokens time out after one hour. Therefore, if you call IssueCertificate multiple times with the same idempotency token within 5 minutes, ACM Private CA recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, PCA recognizes that you are requesting multiple certificates.
idempotencyToken - Custom string that can be used to distinguish between calls to the IssueCertificate action.
Idempotency tokens time out after one hour. Therefore, if you call IssueCertificate multiple times
with the same idempotency token within 5 minutes, ACM Private CA recognizes that you are requesting only
one certificate and will issue only one. If you change the idempotency token for each call, PCA recognizes
that you are requesting multiple certificates.public String getIdempotencyToken()
Custom string that can be used to distinguish between calls to the IssueCertificate action. Idempotency tokens time out after one hour. Therefore, if you call IssueCertificate multiple times with the same idempotency token within 5 minutes, ACM Private CA recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, PCA recognizes that you are requesting multiple certificates.
public IssueCertificateRequest withIdempotencyToken(String idempotencyToken)
Custom string that can be used to distinguish between calls to the IssueCertificate action. Idempotency tokens time out after one hour. Therefore, if you call IssueCertificate multiple times with the same idempotency token within 5 minutes, ACM Private CA recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, PCA recognizes that you are requesting multiple certificates.
idempotencyToken - Custom string that can be used to distinguish between calls to the IssueCertificate action.
Idempotency tokens time out after one hour. Therefore, if you call IssueCertificate multiple times
with the same idempotency token within 5 minutes, ACM Private CA recognizes that you are requesting only
one certificate and will issue only one. If you change the idempotency token for each call, PCA recognizes
that you are requesting multiple certificates.public String toString()
toString in class ObjectObject.toString()public IssueCertificateRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.