io.dropwizard.auth.DefaultAuthorizationContext Maven / Gradle / Ivy
package io.dropwizard.auth;
import jakarta.ws.rs.container.ContainerRequestContext;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.security.Principal;
/**
* The default implementation of {@link AuthorizationContext},
* which uses a {@link Principal}, a role and a {@link ContainerRequestContext} to
* temporarily cache principals' role associations.
*
* @param the type of principals
*/
public class DefaultAuthorizationContext
extends AuthorizationContext
{
DefaultAuthorizationContext(P principal, String role, @Nullable ContainerRequestContext requestContext) {
super(principal, role, requestContext);
}
}