Package org.wildfly.security.permission
Class UnionPermissionCollection
- java.lang.Object
-
- java.security.PermissionCollection
-
- org.wildfly.security.permission.UnionPermissionCollection
-
- All Implemented Interfaces:
Serializable
,PermissionVerifier
final class UnionPermissionCollection extends PermissionCollection implements PermissionVerifier
-
-
Field Summary
Fields Modifier and Type Field Description private PermissionCollection
pc1
private PermissionCollection
pc2
private static long
serialVersionUID
-
Fields inherited from interface org.wildfly.security.permission.PermissionVerifier
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description UnionPermissionCollection(PermissionCollection pc1, PermissionCollection pc2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Permission permission)
Enumeration<Permission>
elements()
boolean
implies(Permission permission)
Determine if the permission is verified by this object.private void
readObject(ObjectInputStream ois)
-
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
-
Methods inherited from interface org.wildfly.security.permission.PermissionVerifier
and, checkPermission, not, or, toPermissionCollection, unless, xor
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
pc1
private final PermissionCollection pc1
-
pc2
private final PermissionCollection pc2
-
-
Constructor Detail
-
UnionPermissionCollection
UnionPermissionCollection(PermissionCollection pc1, PermissionCollection pc2)
-
-
Method Detail
-
add
public void add(Permission permission)
- Specified by:
add
in classPermissionCollection
-
implies
public boolean implies(Permission permission)
Description copied from interface:PermissionVerifier
Determine if the permission is verified by this object.- Specified by:
implies
in interfacePermissionVerifier
- Specified by:
implies
in classPermissionCollection
- Parameters:
permission
- the permission to verify (must not benull
)- Returns:
true
if the permission is implied by this verifier,false
otherwise
-
elements
public Enumeration<Permission> elements()
- Specified by:
elements
in classPermissionCollection
-
readObject
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-