TlsTypes.Info, TlsTypes.ReplaceSpec, TlsTypes.Spec
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
TlsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
TlsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
TlsTypes.Info |
get()
Returns the rhttpproxy TLS certificate.
|
void |
get(AsyncCallback<TlsTypes.Info> asyncCallback)
Returns the rhttpproxy TLS certificate.
|
void |
get(AsyncCallback<TlsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the rhttpproxy TLS certificate.
|
TlsTypes.Info |
get(InvocationConfig invocationConfig)
Returns the rhttpproxy TLS certificate.
|
void |
renew(java.lang.Long duration)
Renews the TLS certificate for the given duration period.
|
void |
renew(java.lang.Long duration,
AsyncCallback<java.lang.Void> asyncCallback)
Renews the TLS certificate for the given duration period.
|
void |
renew(java.lang.Long duration,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Renews the TLS certificate for the given duration period.
|
void |
renew(java.lang.Long duration,
InvocationConfig invocationConfig)
Renews the TLS certificate for the given duration period.
|
void |
replaceVmcaSigned(TlsTypes.ReplaceSpec spec)
Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go
for restart.
|
void |
replaceVmcaSigned(TlsTypes.ReplaceSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go
for restart.
|
void |
replaceVmcaSigned(TlsTypes.ReplaceSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go
for restart.
|
void |
replaceVmcaSigned(TlsTypes.ReplaceSpec spec,
InvocationConfig invocationConfig)
Replace MACHINE SSL with VMCA signed one with the given Spec.The system will go
for restart.
|
void |
set(TlsTypes.Spec spec)
Replaces the rhttpproxy TLS certificate with the specified certificate.
|
void |
set(TlsTypes.Spec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Replaces the rhttpproxy TLS certificate with the specified certificate.
|
void |
set(TlsTypes.Spec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Replaces the rhttpproxy TLS certificate with the specified certificate.
|
void |
set(TlsTypes.Spec spec,
InvocationConfig invocationConfig)
Replaces the rhttpproxy TLS certificate with the specified certificate.
|
public TlsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public TlsStub(ApiProvider apiProvider, StubConfigurationBase config)
public void set(TlsTypes.Spec spec)
Tls
The above three scenarios are only supported from vsphere 7.0 onwards.
. This method was added in vSphere API 6.7.2.Synchronous method overload. Result of the invocation will be reported as a method return value.
public void set(TlsTypes.Spec spec, InvocationConfig invocationConfig)
Tls
The above three scenarios are only supported from vsphere 7.0 onwards.
. This method was added in vSphere API 6.7.2.Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void set(TlsTypes.Spec spec, AsyncCallback<java.lang.Void> asyncCallback)
Tls
The above three scenarios are only supported from vsphere 7.0 onwards.
. This method was added in vSphere API 6.7.2.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- If the private key is not present in the VECS store.
AlreadyExists
- If the specified certificate thumbprint is the same as the existing TLS
certificate thumbprint.
Error
- If the system failed to replace the TLS certificate.
Unauthorized
- if you do not have all of the privileges described as follows:
CertificateManagement.Administer
. public void set(TlsTypes.Spec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Tls
The above three scenarios are only supported from vsphere 7.0 onwards.
. This method was added in vSphere API 6.7.2.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- If the private key is not present in the VECS store.
AlreadyExists
- If the specified certificate thumbprint is the same as the existing TLS
certificate thumbprint.
Error
- If the system failed to replace the TLS certificate.
Unauthorized
- if you do not have all of the privileges described as follows:
CertificateManagement.Administer
. public TlsTypes.Info get()
Tls
Synchronous method overload. Result of the invocation will be reported as a method return value.
public TlsTypes.Info get(InvocationConfig invocationConfig)
Tls
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void get(AsyncCallback<TlsTypes.Info> asyncCallback)
Tls
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
TLS certificate.
Operation Errors:
NotFound
- if the rhttpproxy certificate is not present in VECS store.
Error
- if failed due to generic exception.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. public void get(AsyncCallback<TlsTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Tls
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
TLS certificate.
Operation Errors:
NotFound
- if the rhttpproxy certificate is not present in VECS store.
Error
- if failed due to generic exception.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. public void renew(java.lang.Long duration)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.7.2.Synchronous method overload. Result of the invocation will be reported as a method return value.
public void renew(java.lang.Long duration, InvocationConfig invocationConfig)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.7.2.Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void renew(java.lang.Long duration, AsyncCallback<java.lang.Void> asyncCallback)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.7.2.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unsupported
- If the TLS certificate is not VMCA generated.
InvalidArgument
- If the duration period specified is invalid.
Error
- If the system failed to renew the TLS certificate.
Unauthorized
- if you do not have all of the privileges described as follows:
CertificateManagement.Administer
. renew
in interface Tls
duration
- The duration (in days) of the new TLS certificate. The duration should be less
than or equal to 730 days.
If null
, the duration will be 730 days (two years).asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void renew(java.lang.Long duration, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.7.2.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Unsupported
- If the TLS certificate is not VMCA generated.
InvalidArgument
- If the duration period specified is invalid.
Error
- If the system failed to renew the TLS certificate.
Unauthorized
- if you do not have all of the privileges described as follows:
CertificateManagement.Administer
. renew
in interface Tls
duration
- The duration (in days) of the new TLS certificate. The duration should be less
than or equal to 730 days.
If null
, the duration will be 730 days (two years).asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void replaceVmcaSigned(TlsTypes.ReplaceSpec spec)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.9.1.Synchronous method overload. Result of the invocation will be reported as a method return value.
replaceVmcaSigned
in interface Tls
spec
- The information needed to generate VMCA signed Machine SSLpublic void replaceVmcaSigned(TlsTypes.ReplaceSpec spec, InvocationConfig invocationConfig)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.9.1.Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
replaceVmcaSigned
in interface Tls
spec
- The information needed to generate VMCA signed Machine SSLinvocationConfig
- Configuration for the method invocation.public void replaceVmcaSigned(TlsTypes.ReplaceSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.9.1.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
InvalidArgument
- If the Spec given is not complete or invalid
Error
- If the system failed to replace the machine ssl certificate
Unauthorized
- if you do not have all of the privileges described as follows:
CertificateManagement.Administer
. replaceVmcaSigned
in interface Tls
spec
- The information needed to generate VMCA signed Machine SSLasyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void replaceVmcaSigned(TlsTypes.ReplaceSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Tls
After this method completes, the services using the certificate will be restarted for the new certificate to take effect.
. This method was added in vSphere API 6.9.1.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
InvalidArgument
- If the Spec given is not complete or invalid
Error
- If the system failed to replace the machine ssl certificate
Unauthorized
- if you do not have all of the privileges described as follows:
CertificateManagement.Administer
. replaceVmcaSigned
in interface Tls
spec
- The information needed to generate VMCA signed Machine SSLasyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.