public class AuthResult
extends java.lang.Object
implements java.io.Serializable
The authorizer result.
Constructor and Description |
---|
AuthResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Allowed |
getAllowed()
The policies and statements that allowed the specified action.
|
java.lang.String |
getAuthDecision()
The final authorization decision of this scenario.
|
AuthInfo |
getAuthInfo()
Authorization information.
|
Denied |
getDenied()
The policies and statements that denied the specified action.
|
java.util.List<java.lang.String> |
getMissingContextValues()
Contains any missing context values found while evaluating policy.
|
int |
hashCode() |
void |
setAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
|
void |
setAuthDecision(AuthDecision authDecision)
The final authorization decision of this scenario.
|
void |
setAuthDecision(java.lang.String authDecision)
The final authorization decision of this scenario.
|
void |
setAuthInfo(AuthInfo authInfo)
Authorization information.
|
void |
setDenied(Denied denied)
The policies and statements that denied the specified action.
|
void |
setMissingContextValues(java.util.Collection<java.lang.String> missingContextValues)
Contains any missing context values found while evaluating policy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuthResult |
withAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
|
AuthResult |
withAuthDecision(AuthDecision authDecision)
The final authorization decision of this scenario.
|
AuthResult |
withAuthDecision(java.lang.String authDecision)
The final authorization decision of this scenario.
|
AuthResult |
withAuthInfo(AuthInfo authInfo)
Authorization information.
|
AuthResult |
withDenied(Denied denied)
The policies and statements that denied the specified action.
|
AuthResult |
withMissingContextValues(java.util.Collection<java.lang.String> missingContextValues)
Contains any missing context values found while evaluating policy.
|
AuthResult |
withMissingContextValues(java.lang.String... missingContextValues)
Contains any missing context values found while evaluating policy.
|
public AuthInfo getAuthInfo()
Authorization information.
Authorization information.
public void setAuthInfo(AuthInfo authInfo)
Authorization information.
authInfo
- Authorization information.
public AuthResult withAuthInfo(AuthInfo authInfo)
Authorization information.
Returns a reference to this object so that method calls can be chained together.
authInfo
- Authorization information.
public Allowed getAllowed()
The policies and statements that allowed the specified action.
The policies and statements that allowed the specified action.
public void setAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
allowed
- The policies and statements that allowed the specified action.
public AuthResult withAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
Returns a reference to this object so that method calls can be chained together.
allowed
- The policies and statements that allowed the specified action.
public Denied getDenied()
The policies and statements that denied the specified action.
The policies and statements that denied the specified action.
public void setDenied(Denied denied)
The policies and statements that denied the specified action.
denied
- The policies and statements that denied the specified action.
public AuthResult withDenied(Denied denied)
The policies and statements that denied the specified action.
Returns a reference to this object so that method calls can be chained together.
denied
- The policies and statements that denied the specified action.
public java.lang.String getAuthDecision()
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
Constraints:
Allowed Values: ALLOWED, EXPLICIT_DENY, IMPLICIT_DENY
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
AuthDecision
public void setAuthDecision(java.lang.String authDecision)
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
Constraints:
Allowed Values: ALLOWED, EXPLICIT_DENY, IMPLICIT_DENY
authDecision
- The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
AuthDecision
public AuthResult withAuthDecision(java.lang.String authDecision)
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ALLOWED, EXPLICIT_DENY, IMPLICIT_DENY
authDecision
- The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
AuthDecision
public void setAuthDecision(AuthDecision authDecision)
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
Constraints:
Allowed Values: ALLOWED, EXPLICIT_DENY, IMPLICIT_DENY
authDecision
- The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
AuthDecision
public AuthResult withAuthDecision(AuthDecision authDecision)
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ALLOWED, EXPLICIT_DENY, IMPLICIT_DENY
authDecision
- The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
AuthDecision
public java.util.List<java.lang.String> getMissingContextValues()
Contains any missing context values found while evaluating policy.
Contains any missing context values found while evaluating policy.
public void setMissingContextValues(java.util.Collection<java.lang.String> missingContextValues)
Contains any missing context values found while evaluating policy.
missingContextValues
- Contains any missing context values found while evaluating policy.
public AuthResult withMissingContextValues(java.lang.String... missingContextValues)
Contains any missing context values found while evaluating policy.
Returns a reference to this object so that method calls can be chained together.
missingContextValues
- Contains any missing context values found while evaluating policy.
public AuthResult withMissingContextValues(java.util.Collection<java.lang.String> missingContextValues)
Contains any missing context values found while evaluating policy.
Returns a reference to this object so that method calls can be chained together.
missingContextValues
- Contains any missing context values found while evaluating policy.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.