* An authorization decision that indicates if the authorization request should be allowed or denied. *
*/ private String decision; /** ** 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. *
*/ private java.util.List* 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. *
*/ private java.util.List* An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @param decision * An authorization decision that indicates if the authorization request should be allowed or denied. * @see Decision */ public void setDecision(String decision) { this.decision = decision; } /** ** An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @return An authorization decision that indicates if the authorization request should be allowed or denied. * @see Decision */ public String getDecision() { return this.decision; } /** ** An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @param decision * An authorization decision that indicates if the authorization request should be allowed or denied. * @return Returns a reference to this object so that method calls can be chained together. * @see Decision */ public IsAuthorizedWithTokenResult withDecision(String decision) { setDecision(decision); return this; } /** ** An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @param decision * An authorization decision that indicates if the authorization request should be allowed or denied. * @return Returns a reference to this object so that method calls can be chained together. * @see Decision */ public IsAuthorizedWithTokenResult withDecision(Decision decision) { this.decision = decision.toString(); return this; } /** ** 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setDeterminingPolicies(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDeterminingPolicies(java.util.Collection)} or {@link #withDeterminingPolicies(java.util.Collection)} * if you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedWithTokenResult withDeterminingPolicies(DeterminingPolicyItem... determiningPolicies) { if (this.determiningPolicies == null) { setDeterminingPolicies(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedWithTokenResult withDeterminingPolicies(java.util.Collection* 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setErrors(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the * existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedWithTokenResult withErrors(EvaluationErrorItem... errors) { if (this.errors == null) { setErrors(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedWithTokenResult withErrors(java.util.Collection