Package com.vmware.nsx_policy.model
Class X509Certificate.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.X509Certificate.Builder
-
- Enclosing class:
- X509Certificate
public static final class X509Certificate.Builder extends java.lang.Object
Builder class forX509Certificate
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofX509Certificate
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate
build()
X509Certificate.Builder
setDsaPublicKeyg(java.lang.String dsaPublicKeyg)
One of the DSA cryptogaphic algorithm's strength parameters, base.X509Certificate.Builder
setDsaPublicKeyp(java.lang.String dsaPublicKeyp)
One of the DSA cryptogaphic algorithm's strength parameters, prime.X509Certificate.Builder
setDsaPublicKeyq(java.lang.String dsaPublicKeyq)
One of the DSA cryptogaphic algorithm's strength parameters, sub-prime.X509Certificate.Builder
setDsaPublicKeyy(java.lang.String dsaPublicKeyy)
One of the DSA cryptogaphic algorithm's strength parameters.X509Certificate.Builder
setEcdsaCurveName(java.lang.String ecdsaCurveName)
The Curve name for the ECDSA certificate.X509Certificate.Builder
setEcdsaEcField(java.lang.String ecdsaEcField)
Possible values are:X509Certificate.ECDSA_EC_FIELD_F2M
X509Certificate.ECDSA_EC_FIELD_FP
Represents an elliptic curve (EC) finite field in ECDSA.X509Certificate.Builder
setEcdsaEcFieldF2mks(java.util.List<java.lang.Long> ecdsaEcFieldF2mks)
The order of the middle term(s) of the reduction polynomial in elliptic curve (EC) | characteristic 2 finite field.| Contents of this array are copied to protect against subsequent modification in ECDSA.X509Certificate.Builder
setEcdsaEcFieldF2mm(java.lang.Long ecdsaEcFieldF2mm)
The first coefficient of this elliptic curve in elliptic curve (EC) | characteristic 2 finite field for ECDSA.X509Certificate.Builder
setEcdsaEcFieldF2mrp(java.lang.String ecdsaEcFieldF2mrp)
The value whose i-th bit corresponds to the i-th coefficient of the reduction polynomial | in elliptic curve (EC) characteristic 2 finite field for ECDSA.X509Certificate.Builder
setEcdsaEcFieldF2pp(java.lang.String ecdsaEcFieldF2pp)
The specified prime for the elliptic curve prime finite field in ECDSA.X509Certificate.Builder
setEcdsaPub(java.lang.String ecdsaPub)
The public key information in ECDSA.X509Certificate.Builder
setEcdsaPublicKeya(java.lang.String ecdsaPublicKeya)
The first coefficient of this elliptic curve in ECDSA.X509Certificate.Builder
setEcdsaPublicKeyb(java.lang.String ecdsaPublicKeyb)
The second coefficient of this elliptic curve in ECDSA.X509Certificate.Builder
setEcdsaPublicKeyCofactor(java.lang.Long ecdsaPublicKeyCofactor)
The co-factor in ECDSA.X509Certificate.Builder
setEcdsaPublicKeyGeneratorx(java.lang.String ecdsaPublicKeyGeneratorx)
X co-ordinate of G (the generator which is also known as the base point) in ECDSA.X509Certificate.Builder
setEcdsaPublicKeyGeneratory(java.lang.String ecdsaPublicKeyGeneratory)
Y co-ordinate of G (the generator which is also known as the base point) in ECDSA.X509Certificate.Builder
setEcdsaPublicKeyOrder(java.lang.String ecdsaPublicKeyOrder)
The order of generator G in ECDSA.X509Certificate.Builder
setEcdsaPublicKeySeed(java.util.List<java.lang.String> ecdsaPublicKeySeed)
The bytes used during curve generation for later validation in ECDSA.| Contents of this array are copied to protect against subsequent modification.X509Certificate.Builder
setIsCa(java.lang.Boolean isCa)
True if this is a CA certificate.X509Certificate.Builder
setIssuer(java.lang.String issuer)
The certificate issuers complete distinguished name.X509Certificate.Builder
setIssuerCn(java.lang.String issuerCn)
The certificate issuer's common name.X509Certificate.Builder
setIsValid(java.lang.Boolean isValid)
True if this certificate is valid.X509Certificate.Builder
setNotAfter(java.lang.Long notAfter)
The time in epoch milliseconds at which the certificate becomes invalid.X509Certificate.Builder
setNotBefore(java.lang.Long notBefore)
The time in epoch milliseconds at which the certificate becomes valid.X509Certificate.Builder
setParsedPemEncoding(java.lang.String parsedPemEncoding)
This is the PEM encoding after parsing out any extraneous characters, ensuring any library will accept it.X509Certificate.Builder
setPublicKeyAlgo(java.lang.String publicKeyAlgo)
Cryptographic algorithm used by the public key for data encryption.X509Certificate.Builder
setPublicKeyLength(java.lang.Long publicKeyLength)
Size measured in bits of the public/private keys used in a cryptographic algorithm.X509Certificate.Builder
setRsaPublicKeyExponent(java.lang.String rsaPublicKeyExponent)
An RSA public key is made up of the modulus and the public exponent.X509Certificate.Builder
setRsaPublicKeyModulus(java.lang.String rsaPublicKeyModulus)
An RSA public key is made up of the modulus and the public exponent.X509Certificate.Builder
setSerialNumber(java.lang.String serialNumber)
Certificate's serial number.X509Certificate.Builder
setSha256Thumbprint(java.lang.String sha256Thumbprint)
The SHA256 thumbprint of the certificate, in hexadecimal notation.X509Certificate.Builder
setSignature(java.lang.String signature)
The signature value(the raw signature bits) used for signing and validate the cert.X509Certificate.Builder
setSignatureAlgorithm(java.lang.String signatureAlgorithm)
The algorithm used by the Certificate Authority to sign the certificate.X509Certificate.Builder
setSubject(java.lang.String subject)
The certificate owners complete distinguished name.X509Certificate.Builder
setSubjectCn(java.lang.String subjectCn)
The certificate owner's common name.X509Certificate.Builder
setVersion(java.lang.String version)
Certificate version (default v1).
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofX509Certificate
.
-
-
Method Detail
-
setDsaPublicKeyg
public X509Certificate.Builder setDsaPublicKeyg(java.lang.String dsaPublicKeyg)
One of the DSA cryptogaphic algorithm's strength parameters, base. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dsaPublicKeyg
- New value for the property.
-
setDsaPublicKeyp
public X509Certificate.Builder setDsaPublicKeyp(java.lang.String dsaPublicKeyp)
One of the DSA cryptogaphic algorithm's strength parameters, prime. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dsaPublicKeyp
- New value for the property.
-
setDsaPublicKeyq
public X509Certificate.Builder setDsaPublicKeyq(java.lang.String dsaPublicKeyq)
One of the DSA cryptogaphic algorithm's strength parameters, sub-prime. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dsaPublicKeyq
- New value for the property.
-
setDsaPublicKeyy
public X509Certificate.Builder setDsaPublicKeyy(java.lang.String dsaPublicKeyy)
One of the DSA cryptogaphic algorithm's strength parameters. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dsaPublicKeyy
- New value for the property.
-
setEcdsaCurveName
public X509Certificate.Builder setEcdsaCurveName(java.lang.String ecdsaCurveName)
The Curve name for the ECDSA certificate. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaCurveName
- New value for the property.
-
setEcdsaEcField
public X509Certificate.Builder setEcdsaEcField(java.lang.String ecdsaEcField)
Possible values are: Represents an elliptic curve (EC) finite field in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaEcField
- New value for the property.
-
setEcdsaEcFieldF2mks
public X509Certificate.Builder setEcdsaEcFieldF2mks(java.util.List<java.lang.Long> ecdsaEcFieldF2mks)
The order of the middle term(s) of the reduction polynomial in elliptic curve (EC) | characteristic 2 finite field.| Contents of this array are copied to protect against subsequent modification in ECDSA. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaEcFieldF2mks
- New value for the property.
-
setEcdsaEcFieldF2mm
public X509Certificate.Builder setEcdsaEcFieldF2mm(java.lang.Long ecdsaEcFieldF2mm)
The first coefficient of this elliptic curve in elliptic curve (EC) | characteristic 2 finite field for ECDSA. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaEcFieldF2mm
- New value for the property.
-
setEcdsaEcFieldF2mrp
public X509Certificate.Builder setEcdsaEcFieldF2mrp(java.lang.String ecdsaEcFieldF2mrp)
The value whose i-th bit corresponds to the i-th coefficient of the reduction polynomial | in elliptic curve (EC) characteristic 2 finite field for ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaEcFieldF2mrp
- New value for the property.
-
setEcdsaEcFieldF2pp
public X509Certificate.Builder setEcdsaEcFieldF2pp(java.lang.String ecdsaEcFieldF2pp)
The specified prime for the elliptic curve prime finite field in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaEcFieldF2pp
- New value for the property.
-
setEcdsaPub
public X509Certificate.Builder setEcdsaPub(java.lang.String ecdsaPub)
The public key information in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPub
- New value for the property.
-
setEcdsaPublicKeya
public X509Certificate.Builder setEcdsaPublicKeya(java.lang.String ecdsaPublicKeya)
The first coefficient of this elliptic curve in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPublicKeya
- New value for the property.
-
setEcdsaPublicKeyb
public X509Certificate.Builder setEcdsaPublicKeyb(java.lang.String ecdsaPublicKeyb)
The second coefficient of this elliptic curve in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPublicKeyb
- New value for the property.
-
setEcdsaPublicKeyCofactor
public X509Certificate.Builder setEcdsaPublicKeyCofactor(java.lang.Long ecdsaPublicKeyCofactor)
The co-factor in ECDSA. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPublicKeyCofactor
- New value for the property.
-
setEcdsaPublicKeyGeneratorx
public X509Certificate.Builder setEcdsaPublicKeyGeneratorx(java.lang.String ecdsaPublicKeyGeneratorx)
X co-ordinate of G (the generator which is also known as the base point) in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPublicKeyGeneratorx
- New value for the property.
-
setEcdsaPublicKeyGeneratory
public X509Certificate.Builder setEcdsaPublicKeyGeneratory(java.lang.String ecdsaPublicKeyGeneratory)
Y co-ordinate of G (the generator which is also known as the base point) in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPublicKeyGeneratory
- New value for the property.
-
setEcdsaPublicKeyOrder
public X509Certificate.Builder setEcdsaPublicKeyOrder(java.lang.String ecdsaPublicKeyOrder)
The order of generator G in ECDSA. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPublicKeyOrder
- New value for the property.
-
setEcdsaPublicKeySeed
public X509Certificate.Builder setEcdsaPublicKeySeed(java.util.List<java.lang.String> ecdsaPublicKeySeed)
The bytes used during curve generation for later validation in ECDSA.| Contents of this array are copied to protect against subsequent modification. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ecdsaPublicKeySeed
- New value for the property.
-
setIsCa
public X509Certificate.Builder setIsCa(java.lang.Boolean isCa)
True if this is a CA certificate. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
isCa
- New value for the property.
-
setIsValid
public X509Certificate.Builder setIsValid(java.lang.Boolean isValid)
True if this certificate is valid. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
isValid
- New value for the property.
-
setIssuer
public X509Certificate.Builder setIssuer(java.lang.String issuer)
The certificate issuers complete distinguished name. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
issuer
- New value for the property.
-
setIssuerCn
public X509Certificate.Builder setIssuerCn(java.lang.String issuerCn)
The certificate issuer's common name. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
issuerCn
- New value for the property.
-
setNotAfter
public X509Certificate.Builder setNotAfter(java.lang.Long notAfter)
The time in epoch milliseconds at which the certificate becomes invalid. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
notAfter
- New value for the property.
-
setNotBefore
public X509Certificate.Builder setNotBefore(java.lang.Long notBefore)
The time in epoch milliseconds at which the certificate becomes valid. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
notBefore
- New value for the property.
-
setParsedPemEncoding
public X509Certificate.Builder setParsedPemEncoding(java.lang.String parsedPemEncoding)
This is the PEM encoding after parsing out any extraneous characters, ensuring any library will accept it. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
parsedPemEncoding
- New value for the property.
-
setPublicKeyAlgo
public X509Certificate.Builder setPublicKeyAlgo(java.lang.String publicKeyAlgo)
Cryptographic algorithm used by the public key for data encryption. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
publicKeyAlgo
- New value for the property.
-
setPublicKeyLength
public X509Certificate.Builder setPublicKeyLength(java.lang.Long publicKeyLength)
Size measured in bits of the public/private keys used in a cryptographic algorithm. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
publicKeyLength
- New value for the property.
-
setRsaPublicKeyExponent
public X509Certificate.Builder setRsaPublicKeyExponent(java.lang.String rsaPublicKeyExponent)
An RSA public key is made up of the modulus and the public exponent. Exponent is a power number. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
rsaPublicKeyExponent
- New value for the property.
-
setRsaPublicKeyModulus
public X509Certificate.Builder setRsaPublicKeyModulus(java.lang.String rsaPublicKeyModulus)
An RSA public key is made up of the modulus and the public exponent. Modulus is wrap around number. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
rsaPublicKeyModulus
- New value for the property.
-
setSerialNumber
public X509Certificate.Builder setSerialNumber(java.lang.String serialNumber)
Certificate's serial number. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
serialNumber
- New value for the property.
-
setSha256Thumbprint
public X509Certificate.Builder setSha256Thumbprint(java.lang.String sha256Thumbprint)
The SHA256 thumbprint of the certificate, in hexadecimal notation. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
sha256Thumbprint
- New value for the property.
-
setSignature
public X509Certificate.Builder setSignature(java.lang.String signature)
The signature value(the raw signature bits) used for signing and validate the cert. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
signature
- New value for the property.
-
setSignatureAlgorithm
public X509Certificate.Builder setSignatureAlgorithm(java.lang.String signatureAlgorithm)
The algorithm used by the Certificate Authority to sign the certificate. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
signatureAlgorithm
- New value for the property.
-
setSubject
public X509Certificate.Builder setSubject(java.lang.String subject)
The certificate owners complete distinguished name. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
subject
- New value for the property.
-
setSubjectCn
public X509Certificate.Builder setSubjectCn(java.lang.String subjectCn)
The certificate owner's common name. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
subjectCn
- New value for the property.
-
setVersion
public X509Certificate.Builder setVersion(java.lang.String version)
Certificate version (default v1). This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
version
- New value for the property.
-
build
public X509Certificate build()
-
-