Class RestClient

java.lang.Object
co.privacyone.sdk.restapi.rest.RestApi
co.privacyone.sdk.restapi.rest.RestClient

public class RestClient extends RestApi
RestClient integrate the authentication to Cerberus with RestApi
  • Field Summary

    Fields inherited from class co.privacyone.sdk.restapi.rest.RestApi

    SC_UNAUTHORIZED
  • Constructor Summary

    Constructors
    Constructor
    Description
    RestClient(String schema, String authenticationHost, int authenticationPort, String accountName, String accountPassword)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    co.privacyone.cerberus.restmodel.account.AuthResponseModel
     
    co.privacyone.cerberus.restmodel.account.AuthResponseModel
     
    okhttp3.Response
    delete(okhttp3.HttpUrl url, Optional<okhttp3.Headers> headers, okhttp3.RequestBody requestBody)
     
    okhttp3.Response
    get(okhttp3.HttpUrl url, Optional<okhttp3.Headers> headers)
     
    okhttp3.Response
    head(okhttp3.HttpUrl url, Optional<okhttp3.Headers> headers)
     
    okhttp3.Response
    post(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, Optional<okhttp3.Headers> headers)
     
    okhttp3.Response
    put(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, Optional<okhttp3.Headers> headers)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait