Package java.security

Class Permission

    • Constructor Detail

      • Permission

        public Permission​(String name)
    • Method Detail

      • getName

        public final String getName()
      • checkGuard

        public void checkGuard​(Object obj)
                        throws SecurityException
        Description copied from interface: Guard
        Checks whether access to the specified Object should be granted. This method returns silently if access is granted, otherwise a SecurityException is thrown.
        Specified by:
        checkGuard in interface Guard
        Parameters:
        obj - the object to be protected by this Guard.
        Throws:
        SecurityException - if access is not granted.
      • getActions

        public abstract String getActions()
      • implies

        public abstract boolean implies​(Permission permission)