Class AuthenticateResponse


public class AuthenticateResponse extends JsonrpcResponseSuccess
Represents a JSON-RPC Response for AuthenticateWithPasswordRequest or AuthenticateWithTokenRequest.
 {
   "jsonrpc": "2.0",
   "id": "UUID",
   "result": {
     "token": String,
     "user": 
invalid reference
AbstractUser#toJsonObject()
} }
  • Constructor Details

  • Method Details

    • getResult

      public com.google.gson.JsonObject getResult()
      This method formats the AuthenticateResponse so that it contains the required information for OpenEMS UI.
      Specified by:
      getResult in class JsonrpcResponseSuccess
      Returns:
      a JsonObject with the 'result' property of the response