Class FactoryPermissionCollection

  • All Implemented Interfaces:
    java.io.Serializable

    public final class FactoryPermissionCollection
    extends java.security.PermissionCollection
    A permission collection which lazily instantiates the permission objects on first use. Any unavailable permission objects will not be granted to the resultant collection.
    Author:
    David M. Lloyd
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.security.Permission permission)  
      java.util.Enumeration<java.security.Permission> elements()  
      boolean implies​(java.security.Permission permission)  
      • Methods inherited from class java.security.PermissionCollection

        elementsAsStream, isReadOnly, setReadOnly, toString
      • Methods inherited from class java.lang.Object

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

      • FactoryPermissionCollection

        public FactoryPermissionCollection​(PermissionFactory... factories)
        Construct a new instance.
        Parameters:
        factories - the factories to use to construct the permission collection
    • Method Detail

      • add

        public void add​(java.security.Permission permission)
        Specified by:
        add in class java.security.PermissionCollection
      • implies

        public boolean implies​(java.security.Permission permission)
        Specified by:
        implies in class java.security.PermissionCollection
      • elements

        public java.util.Enumeration<java.security.Permission> elements()
        Specified by:
        elements in class java.security.PermissionCollection