Interface X509Attributes.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<X509Attributes.Builder,,X509Attributes> SdkBuilder<X509Attributes.Builder,,X509Attributes> SdkPojo
- Enclosing class:
X509Attributes
-
Method Summary
Modifier and TypeMethodDescriptionextendedKeyUsages(Collection<ExtendedKeyUsageName> extendedKeyUsages) Contains a list of Extended Key Usage X.509 v3 extension objects.extendedKeyUsages(ExtendedKeyUsageName... extendedKeyUsages) Contains a list of Extended Key Usage X.509 v3 extension objects.extendedKeyUsagesWithStrings(String... extendedKeyUsages) Contains a list of Extended Key Usage X.509 v3 extension objects.extendedKeyUsagesWithStrings(Collection<String> extendedKeyUsages) Contains a list of Extended Key Usage X.509 v3 extension objects.default X509Attributes.Builderissuer(Consumer<DistinguishedName.Builder> issuer) The distinguished name of the certificate issuer.issuer(DistinguishedName issuer) The distinguished name of the certificate issuer.keyAlgorithm(String keyAlgorithm) The algorithm that was used to generate the public-private key pair.keyAlgorithm(KeyAlgorithm keyAlgorithm) The algorithm that was used to generate the public-private key pair.keyUsages(Collection<KeyUsageName> keyUsages) A list of Key Usage X.509 v3 extension objects.keyUsages(KeyUsageName... keyUsages) A list of Key Usage X.509 v3 extension objects.keyUsagesWithStrings(String... keyUsages) A list of Key Usage X.509 v3 extension objects.keyUsagesWithStrings(Collection<String> keyUsages) A list of Key Usage X.509 v3 extension objects.The time after which the certificate is not valid.The time before which the certificate is not valid.serialNumber(String serialNumber) The serial number assigned by the certificate authority.default X509Attributes.Buildersubject(Consumer<DistinguishedName.Builder> subject) The distinguished name of the certificate subject.subject(DistinguishedName subject) The distinguished name of the certificate subject.subjectAlternativeNames(Collection<GeneralName> subjectAlternativeNames) One or more domain names (subject alternative names) included in the certificate.subjectAlternativeNames(Consumer<GeneralName.Builder>... subjectAlternativeNames) One or more domain names (subject alternative names) included in the certificate.subjectAlternativeNames(GeneralName... subjectAlternativeNames) One or more domain names (subject alternative names) included in the certificate.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
issuer
The distinguished name of the certificate issuer.
- Parameters:
issuer- The distinguished name of the certificate issuer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
issuer
The distinguished name of the certificate issuer.
This is a convenience method that creates an instance of theDistinguishedName.Builderavoiding the need to create one manually viaDistinguishedName.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toissuer(DistinguishedName).- Parameters:
issuer- a consumer that will call methods onDistinguishedName.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subject
The distinguished name of the certificate subject.
- Parameters:
subject- The distinguished name of the certificate subject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
The distinguished name of the certificate subject.
This is a convenience method that creates an instance of theDistinguishedName.Builderavoiding the need to create one manually viaDistinguishedName.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubject(DistinguishedName).- Parameters:
subject- a consumer that will call methods onDistinguishedName.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subjectAlternativeNames
One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is 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.
- Parameters:
subjectAlternativeNames- One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subjectAlternativeNames
One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is 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.
- Parameters:
subjectAlternativeNames- One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subjectAlternativeNames
X509Attributes.Builder subjectAlternativeNames(Consumer<GeneralName.Builder>... subjectAlternativeNames) One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is 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.
This is a convenience method that creates an instance of theGeneralName.Builderavoiding the need to create one manually viaGeneralName.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubjectAlternativeNames(List<GeneralName>).- Parameters:
subjectAlternativeNames- a consumer that will call methods onGeneralName.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
extendedKeyUsagesWithStrings
Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
- Parameters:
extendedKeyUsages- Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extendedKeyUsagesWithStrings
Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
- Parameters:
extendedKeyUsages- Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extendedKeyUsages
Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
- Parameters:
extendedKeyUsages- Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extendedKeyUsages
Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
- Parameters:
extendedKeyUsages- Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyAlgorithm
The algorithm that was used to generate the public-private key pair.
- Parameters:
keyAlgorithm- The algorithm that was used to generate the public-private key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyAlgorithm
The algorithm that was used to generate the public-private key pair.
- Parameters:
keyAlgorithm- The algorithm that was used to generate the public-private key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyUsagesWithStrings
A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
- Parameters:
keyUsages- A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyUsagesWithStrings
A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
- Parameters:
keyUsages- A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyUsages
A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
- Parameters:
keyUsages- A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyUsages
A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
- Parameters:
keyUsages- A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serialNumber
The serial number assigned by the certificate authority.
- Parameters:
serialNumber- The serial number assigned by the certificate authority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notAfter
The time after which the certificate is not valid.
- Parameters:
notAfter- The time after which the certificate is not valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notBefore
The time before which the certificate is not valid.
- Parameters:
notBefore- The time before which the certificate is not valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-