Interface AuthResult.Builder

    • Method Detail

      • authInfo

        AuthResult.Builder authInfo​(AuthInfo authInfo)

        Authorization information.

        Parameters:
        authInfo - Authorization information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allowed

        AuthResult.Builder allowed​(Allowed allowed)

        The policies and statements that allowed the specified action.

        Parameters:
        allowed - The policies and statements that allowed the specified action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • denied

        AuthResult.Builder denied​(Denied denied)

        The policies and statements that denied the specified action.

        Parameters:
        denied - The policies and statements that denied the specified action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • authDecision

        AuthResult.Builder authDecision​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AuthDecision, AuthDecision
      • authDecision

        AuthResult.Builder authDecision​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AuthDecision, AuthDecision
      • missingContextValues

        AuthResult.Builder missingContextValues​(Collection<String> missingContextValues)

        Contains any missing context values found while evaluating policy.

        Parameters:
        missingContextValues - Contains any missing context values found while evaluating policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • missingContextValues

        AuthResult.Builder missingContextValues​(String... missingContextValues)

        Contains any missing context values found while evaluating policy.

        Parameters:
        missingContextValues - Contains any missing context values found while evaluating policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.