public interface TrustedCertificates extends Service, TrustedCertificatesTypes
TrustedCertificates
interface provides methods to create, modify,
delete and read trusted certificates. This interface was added in vSphere API
7.0.3.0.TrustedCertificatesTypes.CreateSpec, TrustedCertificatesTypes.Info, TrustedCertificatesTypes.ListResult, TrustedCertificatesTypes.Summary
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(TrustedCertificatesTypes.CreateSpec spec)
Adds a certificate to content library trust store.
|
void |
create(TrustedCertificatesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Adds a certificate to content library trust store.
|
void |
create(TrustedCertificatesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Adds a certificate to content library trust store.
|
java.lang.String |
create(TrustedCertificatesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Adds a certificate to content library trust store.
|
void |
delete(java.lang.String certificate)
Deletes the trusted certificate from content library's trust store for a given
identifier.
|
void |
delete(java.lang.String certificate,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes the trusted certificate from content library's trust store for a given
identifier.
|
void |
delete(java.lang.String certificate,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes the trusted certificate from content library's trust store for a given
identifier.
|
void |
delete(java.lang.String certificate,
InvocationConfig invocationConfig)
Deletes the trusted certificate from content library's trust store for a given
identifier.
|
TrustedCertificatesTypes.Info |
get(java.lang.String certificate)
Retrieves a trusted certificate for a given certificate id.
|
void |
get(java.lang.String certificate,
AsyncCallback<TrustedCertificatesTypes.Info> asyncCallback)
Retrieves a trusted certificate for a given certificate id.
|
void |
get(java.lang.String certificate,
AsyncCallback<TrustedCertificatesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves a trusted certificate for a given certificate id.
|
TrustedCertificatesTypes.Info |
get(java.lang.String certificate,
InvocationConfig invocationConfig)
Retrieves a trusted certificate for a given certificate id.
|
TrustedCertificatesTypes.ListResult |
list()
Returns
ListResult class. |
void |
list(AsyncCallback<TrustedCertificatesTypes.ListResult> asyncCallback)
Returns
ListResult class. |
void |
list(AsyncCallback<TrustedCertificatesTypes.ListResult> asyncCallback,
InvocationConfig invocationConfig)
Returns
ListResult class. |
TrustedCertificatesTypes.ListResult |
list(InvocationConfig invocationConfig)
Returns
ListResult class. |
java.lang.String create(TrustedCertificatesTypes.CreateSpec spec)
This API has to be invoked separately for each certificate block - (BEGIN_CERTIFICATE ... END_CERTIFICATE)
. This method was added in vSphere API 7.0.3.0.Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- Specification for the certificate to be added to content library trust store.com.vmware.content.TrustedCertificate
.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.AddCertToTrustStore
. java.lang.String create(TrustedCertificatesTypes.CreateSpec spec, InvocationConfig invocationConfig)
This API has to be invoked separately for each certificate block - (BEGIN_CERTIFICATE ... END_CERTIFICATE)
. This method was added in vSphere API 7.0.3.0.Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
spec
- Specification for the certificate to be added to content library trust store.invocationConfig
- Configuration for the method invocation.com.vmware.content.TrustedCertificate
.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.AddCertToTrustStore
. void create(TrustedCertificatesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
This API has to be invoked separately for each certificate block - (BEGIN_CERTIFICATE ... END_CERTIFICATE)
. This method was added in vSphere API 7.0.3.0.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
ID of the certificates added. The certificate ID will be unique for each
certificate. If the certificate already exists, existing ID is returned.
The return value will be an identifier for the resource type: com.vmware.content.TrustedCertificate
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.AddCertToTrustStore
. spec
- Specification for the certificate to be added to content library trust store.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(TrustedCertificatesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
This API has to be invoked separately for each certificate block - (BEGIN_CERTIFICATE ... END_CERTIFICATE)
. This method was added in vSphere API 7.0.3.0.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:
ID of the certificates added. The certificate ID will be unique for each
certificate. If the certificate already exists, existing ID is returned.
The return value will be an identifier for the resource type: com.vmware.content.TrustedCertificate
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.AddCertToTrustStore
. spec
- Specification for the certificate to be added to content library trust store.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.TrustedCertificatesTypes.Info get(java.lang.String certificate)
Synchronous method overload. Result of the invocation will be reported as a method return value.
certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.TrustedCertificatesTypes.Info
instance that
corresponds to the certificate
.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.NotFound
- if a trusted certificate does not exist for given id.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires System.Read
. TrustedCertificatesTypes.Info get(java.lang.String certificate, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.invocationConfig
- Configuration for the method invocation.TrustedCertificatesTypes.Info
instance that
corresponds to the certificate
.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.NotFound
- if a trusted certificate does not exist for given id.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires System.Read
. void get(java.lang.String certificate, AsyncCallback<TrustedCertificatesTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
TrustedCertificatesTypes.Info
instance that
corresponds to the certificate
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
NotFound
- if a trusted certificate does not exist for given id.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires System.Read
. certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String certificate, AsyncCallback<TrustedCertificatesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
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:
TrustedCertificatesTypes.Info
instance that
corresponds to the certificate
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
NotFound
- if a trusted certificate does not exist for given id.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires System.Read
. certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.TrustedCertificatesTypes.ListResult list()
ListResult
class. All content library's trusted certificates.
This method was added in vSphere API 7.0.3.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
ListResult
containing trusted certificates.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. TrustedCertificatesTypes.ListResult list(InvocationConfig invocationConfig)
ListResult
class. All content library's trusted certificates.
This method was added in vSphere API 7.0.3.0.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.ListResult
containing trusted certificates.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. void list(AsyncCallback<TrustedCertificatesTypes.ListResult> asyncCallback)
ListResult
class. All content library's trusted certificates.
This method was added in vSphere API 7.0.3.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
ListResult
containing trusted certificates.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<TrustedCertificatesTypes.ListResult> asyncCallback, InvocationConfig invocationConfig)
ListResult
class. All content library's trusted certificates.
This method was added in vSphere API 7.0.3.0.
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:
ListResult
containing trusted certificates.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String certificate)
Synchronous method overload. Result of the invocation will be reported as a method return value.
certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.Error
- if the system reports an error while responding to the request.NotFound
- if the trusted certificate specified by certificate
could not be found.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires ContentLibrary.DeleteCertFromTrustStore
. void delete(java.lang.String certificate, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if the trusted certificate specified by certificate
could not be found.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires ContentLibrary.DeleteCertFromTrustStore
. void delete(java.lang.String certificate, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the trusted certificate specified by certificate
could not be found.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires ContentLibrary.DeleteCertFromTrustStore
. certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String certificate, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
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:
Error
- if the system reports an error while responding to the request.
NotFound
- if the trusted certificate specified by certificate
could not be found.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.TrustedCertificate
referenced by the
parameter certificate
requires ContentLibrary.DeleteCertFromTrustStore
. certificate
- id of the trusted certificate.
The parameter must be an identifier for the resource type: com.vmware.content.TrustedCertificate
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.