Class RestClient


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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      co.privacyone.cerberus.restmodel.account.AuthResponseModel authenticate()  
      co.privacyone.cerberus.restmodel.account.AuthResponseModel authenticateForUser​(java.lang.String userId)  
      okhttp3.Response delete​(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers, okhttp3.RequestBody requestBody)  
      okhttp3.Response get​(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers)  
      okhttp3.Response head​(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers)  
      okhttp3.Response post​(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, java.util.Optional<okhttp3.Headers> headers)  
      okhttp3.Response put​(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, java.util.Optional<okhttp3.Headers> headers)  
      • Methods inherited from class java.lang.Object

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