Interface ContextDefinition.Builder

  • Method Details

    • contextMap

      An list of attributes that are needed to successfully evaluate an authorization request. Each attribute in this array must include a map of a data type and its value.

      Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}

      Parameters:
      contextMap - An list of attributes that are needed to successfully evaluate an authorization request. Each attribute in this array must include a map of a data type and its value.

      Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cedarJson

      ContextDefinition.Builder cedarJson(String cedarJson)

      A Cedar JSON string representation of the context needed to successfully evaluate an authorization request.

      Example: {"cedarJson":"{\"<KeyName1>\": true, \"<KeyName2>\": 1234}" }

      Parameters:
      cedarJson - A Cedar JSON string representation of the context needed to successfully evaluate an authorization request.

      Example: {"cedarJson":"{\"<KeyName1>\": true, \"<KeyName2>\": 1234}" }

      Returns:
      Returns a reference to this object so that method calls can be chained together.