public static interface IsAuthorizedWithTokenResponse.Builder extends VerifiedPermissionsResponse.Builder, SdkPojo, CopyableBuilder<IsAuthorizedWithTokenResponse.Builder,IsAuthorizedWithTokenResponse>
| Modifier and Type | Method and Description |
|---|---|
IsAuthorizedWithTokenResponse.Builder |
decision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedWithTokenResponse.Builder |
decision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedWithTokenResponse.Builder |
determiningPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedWithTokenResponse.Builder |
determiningPolicies(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedWithTokenResponse.Builder |
determiningPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedWithTokenResponse.Builder |
errors(Collection<EvaluationErrorItem> errors)
Errors that occurred while making an authorization decision.
|
IsAuthorizedWithTokenResponse.Builder |
errors(Consumer<EvaluationErrorItem.Builder>... errors)
Errors that occurred while making an authorization decision.
|
IsAuthorizedWithTokenResponse.Builder |
errors(EvaluationErrorItem... errors)
Errors that occurred while making an authorization decision.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildIsAuthorizedWithTokenResponse.Builder decision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
IsAuthorizedWithTokenResponse.Builder decision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
IsAuthorizedWithTokenResponse.Builder determiningPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are
multiple matching policies, where at least one is a forbid policy, then because forbid always
overrides permit the forbid policies are the determining policies. If all matching policies are permit
policies, then those policies are the determining policies. When no policies match and the response is
the default DENY, there are no determining policies.IsAuthorizedWithTokenResponse.Builder determiningPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are
multiple matching policies, where at least one is a forbid policy, then because forbid always
overrides permit the forbid policies are the determining policies. If all matching policies are permit
policies, then those policies are the determining policies. When no policies match and the response is
the default DENY, there are no determining policies.IsAuthorizedWithTokenResponse.Builder determiningPolicies(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are 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) IsAuthorizedWithTokenResponse.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.IsAuthorizedWithTokenResponse.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.IsAuthorizedWithTokenResponse.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.