Class SessionAuthenticateProcedure

All Implemented Interfaces:
Procedure

public class SessionAuthenticateProcedure extends Procedure
The built-in session authentication procedure.
Version:
1.0
  • Constructor Details

    • SessionAuthenticateProcedure

      public SessionAuthenticateProcedure(String id, String type, Dict dict)
      Creates a new procedure from a serialized representation.
      Parameters:
      id - the object identifier
      type - the object type name
      dict - the serialized representation
  • Method Details

    • call

      public Object call(CallContext cx, Bindings bindings) throws ProcedureException
      Executes a call of this procedure in the specified context and with the specified call bindings. The semantics of what the procedure actually does, is up to each implementation. Note that the call bindings are normally inherited from the procedure bindings with arguments bound to their call values.
      Parameters:
      cx - the procedure call context
      bindings - the call bindings to use
      Returns:
      the result of the call, or null if the call produced no result
      Throws:
      ProcedureException - if the call execution caused an error
    • response

      public static Dict response(boolean success, String message, String userId)
      Builds an authentication response object.
      Parameters:
      success - the authentication success flag
      message - the success or error message
      userId - the user identifier, or null
      Returns:
      the authentication response object