All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.auth.Authorizer Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package io.dropwizard.auth;

import java.security.Principal;

/**
 * An interface for classes which authorize principal objects.
 *
 * @param 

the type of principals */ public interface Authorizer

{ /** * Decides if access is granted for the given principal in the given role. * * @param principal a {@link Principal} object, representing a user * @param role a user role * @return {@code true}, if the access is granted, {@code false otherwise} */ boolean authorize(P principal, String role); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy