Interface IsAuthorizedWithTokenRequest.Builder

    • Method Detail

      • policyStoreId

        IsAuthorizedWithTokenRequest.Builder policyStoreId​(String policyStoreId)

        Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.

        Parameters:
        policyStoreId - Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • identityToken

        IsAuthorizedWithTokenRequest.Builder identityToken​(String identityToken)

        Specifies an identity token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken or an IdentityToken, or both.

        Parameters:
        identityToken - Specifies an identity token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken or an IdentityToken, or both.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessToken

        IsAuthorizedWithTokenRequest.Builder accessToken​(String accessToken)

        Specifies an access token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken, or an IdentityToken, or both.

        Parameters:
        accessToken - Specifies an access token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken, or an IdentityToken, or both.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • action

        IsAuthorizedWithTokenRequest.Builder action​(ActionIdentifier action)

        Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.

        Parameters:
        action - Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resource

        IsAuthorizedWithTokenRequest.Builder resource​(EntityIdentifier resource)

        Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?

        Parameters:
        resource - Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • context

        IsAuthorizedWithTokenRequest.Builder context​(ContextDefinition context)

        Specifies additional context that can be used to make more granular authorization decisions.

        Parameters:
        context - Specifies additional context that can be used to make more granular authorization decisions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entities

        IsAuthorizedWithTokenRequest.Builder entities​(EntitiesDefinition entities)

        Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.

        You can include only resource and action entities in this parameter; you can't include principals.

        • The IsAuthorizedWithToken operation takes principal attributes from only the identityToken or accessToken passed to the operation.

        • For action entities, you can include only their Identifier and EntityType.

        Parameters:
        entities - Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.

        You can include only resource and action entities in this parameter; you can't include principals.

        • The IsAuthorizedWithToken operation takes principal attributes from only the identityToken or accessToken passed to the operation.

        • For action entities, you can include only their Identifier and EntityType.

        Returns:
        Returns a reference to this object so that method calls can be chained together.