Interface IsAuthorizedResponse.Builder

  • Method Details

    • decision

      An authorization decision that indicates if the authorization request should be allowed or denied.

      Parameters:
      decision - An authorization decision that indicates if the authorization request should be allowed or denied.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • decision

      An authorization decision that indicates if the authorization request should be allowed or denied.

      Parameters:
      decision - An authorization decision that indicates if the authorization request should be allowed or denied.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • determiningPolicies

      IsAuthorizedResponse.Builder determiningPolicies(Collection<DeterminingPolicyItem> determiningPolicies)

      The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.

      Parameters:
      determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • determiningPolicies

      IsAuthorizedResponse.Builder determiningPolicies(DeterminingPolicyItem... determiningPolicies)

      The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.

      Parameters:
      determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • determiningPolicies

      IsAuthorizedResponse.Builder determiningPolicies(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)

      The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.

      This is a convenience method that creates an instance of the DeterminingPolicyItem.Builder avoiding the need to create one manually via DeterminingPolicyItem.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to determiningPolicies(List<DeterminingPolicyItem>).

      Parameters:
      determiningPolicies - a consumer that will call methods on DeterminingPolicyItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errors

      Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.

      Parameters:
      errors - Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.

      Parameters:
      errors - Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.

      This is a convenience method that creates an instance of the EvaluationErrorItem.Builder avoiding the need to create one manually via EvaluationErrorItem.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errors(List<EvaluationErrorItem>).

      Parameters:
      errors - a consumer that will call methods on EvaluationErrorItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: