Interface HttpOperation<T extends HttpOperation>

All Superinterfaces:
Operation
All Known Subinterfaces:
AuthCloudApiRegistration, Authentication, Deregistration, DeviceInformationChange, OutOfBandAuthentication, OutOfBandOperation, OutOfBandRegistration, PendingOutOfBandOperations, Registration

public interface HttpOperation<T extends HttpOperation> extends Operation
An operation that requires sending HTTP requests to the backend.

You can provide HTTP request headers that can be sent in the HTTP request. This additional headers can be used for example to correlate the operation executed by the SDK with a more general operation. For instance if you want to correlate all the operations involving the enrollment of a user (which includes registration of an authenticator), you can use this feature.

  • Method Summary

    Modifier and Type
    Method
    Description
    Specifies the additional request headers that must be included in the HTTP requests sent by the operation.

    Methods inherited from interface ch.nevis.mobile.sdk.api.operation.Operation

    execute
  • Method Details

    • requestHeaders

      T requestHeaders(RequestHeaders requestHeaders)
      Specifies the additional request headers that must be included in the HTTP requests sent by the operation.
      Parameters:
      requestHeaders - the HTTP headers.
      Returns:
      an HttpOperation