public static interface IsAuthorizedResponse.Builder extends VerifiedPermissionsResponse.Builder, SdkPojo, CopyableBuilder<IsAuthorizedResponse.Builder,IsAuthorizedResponse>
| Modifier and Type | Method and Description |
|---|---|
IsAuthorizedResponse.Builder |
decision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedResponse.Builder |
decision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedResponse.Builder |
determiningPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedResponse.Builder |
determiningPolicies(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedResponse.Builder |
determiningPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedResponse.Builder |
errors(Collection<EvaluationErrorItem> 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.
|
IsAuthorizedResponse.Builder |
errors(Consumer<EvaluationErrorItem.Builder>... 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.
|
IsAuthorizedResponse.Builder |
errors(EvaluationErrorItem... 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.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildIsAuthorizedResponse.Builder decision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
IsAuthorizedResponse.Builder decision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
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.
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.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.
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.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 theDeterminingPolicyItem.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.
determiningPolicies - a consumer that will call methods on
DeterminingPolicyItem.Builder#determiningPolicies(java.util.Collection) IsAuthorizedResponse.Builder errors(Collection<EvaluationErrorItem> 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.
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.IsAuthorizedResponse.Builder errors(EvaluationErrorItem... 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.
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.IsAuthorizedResponse.Builder errors(Consumer<EvaluationErrorItem.Builder>... 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 theEvaluationErrorItem.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.
errors - a consumer that will call methods on
EvaluationErrorItem.Builder#errors(java.util.Collection) Copyright © 2023. All rights reserved.