package io.dropwizard.auth;

import java.security.Principal;

An Authorizer that grants access for any principal in any role.
Type parameters:
  • <P> – the type of the principal
/** * An {@link Authorizer} that grants access for any principal in any role. * * @param <P> the type of the principal */
public class PermitAllAuthorizer<P extends Principal> implements Authorizer<P> { @Override public boolean authorize(P principal, String role) { return true; } }