Package org.jboss.modules.security
Class FactoryPermissionCollection
- java.lang.Object
-
- java.security.PermissionCollection
-
- org.jboss.modules.security.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
-
-
Constructor Summary
Constructors Constructor Description FactoryPermissionCollection(PermissionFactory... factories)
Construct a new instance.
-
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)
-
-
-
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 classjava.security.PermissionCollection
-
implies
public boolean implies(java.security.Permission permission)
- Specified by:
implies
in classjava.security.PermissionCollection
-
elements
public java.util.Enumeration<java.security.Permission> elements()
- Specified by:
elements
in classjava.security.PermissionCollection
-
-