public static final class TlsTypes.Spec.Builder
extends java.lang.Object
TlsTypes.Spec
.Constructor and Description |
---|
Builder(java.lang.String cert)
Constructor with parameters for the required properties of
TlsTypes.Spec . |
Modifier and Type | Method and Description |
---|---|
TlsTypes.Spec |
build() |
TlsTypes.Spec.Builder |
setKey(char[] key)
Private key string in PEM format.
|
TlsTypes.Spec.Builder |
setRootCert(java.lang.String rootCert)
Third party Root CA certificate in PEM format.
|
public Builder(java.lang.String cert)
TlsTypes.Spec
.public TlsTypes.Spec.Builder setKey(char[] key)
null
the private key from the certificate store will be used. It is
required when replacing the certificate with a third party signed certificate.key
- New value for the property.public TlsTypes.Spec.Builder setRootCert(java.lang.String rootCert)
null
the new third party root CA certificate will not be added to the
trust store. It is required when replacing the certificate with a third party
signed certificate if the root certificate of the third party is not already a
trusted root.rootCert
- New value for the property.public TlsTypes.Spec build()