Class Enforcer


  • public class Enforcer
    extends java.lang.Object
    Checks whether Roles have the required Privileges to perform Actions on given URIs.
    Author:
    jonmv
    • Constructor Summary

      Constructors 
      Constructor Description
      Enforcer​(com.yahoo.config.provision.SystemName system)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean allows​(Role role, Action action, java.net.URI resource)
      Returns whether role has permission to perform action on resource, in this enforcer's system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Enforcer

        public Enforcer​(com.yahoo.config.provision.SystemName system)
    • Method Detail

      • allows

        public boolean allows​(Role role,
                              Action action,
                              java.net.URI resource)
        Returns whether role has permission to perform action on resource, in this enforcer's system.