Class CertificatesImpl
- java.lang.Object
-
- com.fifa.connectservicebus.sdk.api.implementation.CertificatesImpl
-
- All Implemented Interfaces:
Certificates
public class CertificatesImpl extends Object implements Certificates
An instance of this class provides access to all the operations defined in Certificates.
-
-
Constructor Summary
Constructors Constructor Description CertificatesImpl(retrofit2.Retrofit retrofit, FIFAConnectServiceBusV3Impl client)Initializes an instance of Certificates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdownloadByQueueidentifier(String queueIdentifier)Gets a byte array that contains data from an X.509 certificate for a given queue.rx.Observable<Object>downloadByQueueidentifierAsync(String queueIdentifier)Gets a byte array that contains data from an X.509 certificate for a given queue.com.microsoft.rest.ServiceFuture<Object>downloadByQueueidentifierAsync(String queueIdentifier, com.microsoft.rest.ServiceCallback<Object> serviceCallback)Gets a byte array that contains data from an X.509 certificate for a given queue.rx.Observable<com.microsoft.rest.ServiceResponse<Object>>downloadByQueueidentifierWithServiceResponseAsync(String queueIdentifier)Gets a byte array that contains data from an X.509 certificate for a given queue.Objectupload(byte[] body)Uploads a public certificate to Connect Service Bus.rx.Observable<Object>uploadAsync(byte[] body)Uploads a public certificate to Connect Service Bus.com.microsoft.rest.ServiceFuture<Object>uploadAsync(byte[] body, com.microsoft.rest.ServiceCallback<Object> serviceCallback)Uploads a public certificate to Connect Service Bus.rx.Observable<com.microsoft.rest.ServiceResponse<Object>>uploadWithServiceResponseAsync(byte[] body)Uploads a public certificate to Connect Service Bus.
-
-
-
Constructor Detail
-
CertificatesImpl
public CertificatesImpl(retrofit2.Retrofit retrofit, FIFAConnectServiceBusV3Impl client)Initializes an instance of Certificates.- Parameters:
retrofit- the Retrofit instance built from a Retrofit Builder.client- the instance of the service client containing this operation class.
-
-
Method Detail
-
upload
public Object upload(byte[] body)
Uploads a public certificate to Connect Service Bus.- Specified by:
uploadin interfaceCertificates- Parameters:
body- A byte array that contains data for an X.509 certificate.- Returns:
- the Object object if successful.
- Throws:
IllegalArgumentException- thrown if parameters fail the validationcom.microsoft.rest.RestException- thrown if the request is rejected by serverRuntimeException- all other wrapped checked exceptions if the request fails to be sent
-
uploadAsync
public com.microsoft.rest.ServiceFuture<Object> uploadAsync(byte[] body, com.microsoft.rest.ServiceCallback<Object> serviceCallback)
Uploads a public certificate to Connect Service Bus.- Specified by:
uploadAsyncin interfaceCertificates- Parameters:
body- A byte array that contains data for an X.509 certificate.serviceCallback- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFutureobject - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
uploadAsync
public rx.Observable<Object> uploadAsync(byte[] body)
Uploads a public certificate to Connect Service Bus.- Specified by:
uploadAsyncin interfaceCertificates- Parameters:
body- A byte array that contains data for an X.509 certificate.- Returns:
- the observable to the Object object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
uploadWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<Object>> uploadWithServiceResponseAsync(byte[] body)
Uploads a public certificate to Connect Service Bus.- Specified by:
uploadWithServiceResponseAsyncin interfaceCertificates- Parameters:
body- A byte array that contains data for an X.509 certificate.- Returns:
- the observable to the Object object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
downloadByQueueidentifier
public Object downloadByQueueidentifier(String queueIdentifier)
Gets a byte array that contains data from an X.509 certificate for a given queue.- Specified by:
downloadByQueueidentifierin interfaceCertificates- Parameters:
queueIdentifier- FIFA Unique Identifier with possible system name suffix- Returns:
- the Object object if successful.
- Throws:
IllegalArgumentException- thrown if parameters fail the validationcom.microsoft.rest.RestException- thrown if the request is rejected by serverRuntimeException- all other wrapped checked exceptions if the request fails to be sent
-
downloadByQueueidentifierAsync
public com.microsoft.rest.ServiceFuture<Object> downloadByQueueidentifierAsync(String queueIdentifier, com.microsoft.rest.ServiceCallback<Object> serviceCallback)
Gets a byte array that contains data from an X.509 certificate for a given queue.- Specified by:
downloadByQueueidentifierAsyncin interfaceCertificates- Parameters:
queueIdentifier- FIFA Unique Identifier with possible system name suffixserviceCallback- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFutureobject - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
downloadByQueueidentifierAsync
public rx.Observable<Object> downloadByQueueidentifierAsync(String queueIdentifier)
Gets a byte array that contains data from an X.509 certificate for a given queue.- Specified by:
downloadByQueueidentifierAsyncin interfaceCertificates- Parameters:
queueIdentifier- FIFA Unique Identifier with possible system name suffix- Returns:
- the observable to the Object object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
downloadByQueueidentifierWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<Object>> downloadByQueueidentifierWithServiceResponseAsync(String queueIdentifier)
Gets a byte array that contains data from an X.509 certificate for a given queue.- Specified by:
downloadByQueueidentifierWithServiceResponseAsyncin interfaceCertificates- Parameters:
queueIdentifier- FIFA Unique Identifier with possible system name suffix- Returns:
- the observable to the Object object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
-