Class AuthorizationPolicy

  • All Implemented Interfaces:
    IPolicy

    public class AuthorizationPolicy
    extends AbstractMappedPolicy<AuthorizationConfig>
    Adds authorization capabilities to apiman. This policy allows users to specify what roles the authenticated user must have in order to be allowed to call the API. This policy works in conjunction with a compatible Authentication policy, such as the Basic authentication policy. The assumption is that such a policy will extract the roles from the source of identity (either during authentication or as a followup step). These roles will be stored in the policy context for use by this Authorization policy. The roles are represented as a simple set of strings.
    Author:
    eric.wittmann@redhat.com