Additional top-level class in compilation unit: PermissionsEnumerator.
CryptoPermission
objects, organized into
PermissionCollection
objects according to algorithm names.
When the add
method is called to add a
CryptoPermission
, the CryptoPermission
is stored in the
appropriate PermissionCollection
. If no such
collection exists yet, the algorithm name associated with
the CryptoPermission
object is
determined and the newPermissionCollection
method
is called on the CryptoPermission
or CryptoAllPermission
class to
create the PermissionCollection
and add it to the Permissions
object.
javax.crypto.CryptoPermission
, java.security.PermissionCollection
, java.security.Permissions
Modifier and Type | Field and Description |
---|---|
private transient ConcurrentHashMap | |
private static final ObjectStreamField[] | |
private static final long |
Access | Constructor and Description |
---|---|
pack-priv | CryptoPermissions()
Creates a new |
Modifier and Type | Method and Description |
---|---|
public void | add(Permission
the permission)Permission object to add.Implements abstract java. Adds a permission object to the
|
public Enumeration | Returns: an enumeration of all thePermission objects.Implements abstract java. Returns an enumeration of all the |
pack-priv CryptoPermissions | getMinimum(CryptoPermissions
the other)CryptoPermission
object to compare with this object.Returns a |
private CryptoPermission[] | getMinimum(PermissionCollection
the first given thisPc, PermissionCollection PermissionCollection
object.the second given thatPc)PermissionCollection
object.Get the minimum of the two given |
private CryptoPermission[] | getMinimum(int
the given maximum key size. maxKeySize, PermissionCollection the given pc)PermissionCollection object.Returns all the |
pack-priv PermissionCollection | getPermissionCollection(String
the algorithm name. alg)Returns the |
private PermissionCollection | getPermissionCollection(CryptoPermission
the cryptoPerm)CryptoPermission object.Returns the |
public boolean | Returns: true if permission is implied by the permissions
in the PermissionCollection it belongs to, false if not.the permission)Permission object to check.Implements abstract java. Checks if this object's |
pack-priv boolean | isEmpty()
Returns |
pack-priv void | load(InputStream
the InputStream to load from. in)Populates the crypto policy from the specified
|
private void | |
private void |
perms | back to summary |
---|---|
private transient ConcurrentHashMap<String, PermissionCollection> perms |
serialPersistentFields | back to summary |
---|---|
private static final ObjectStreamField[] serialPersistentFields
|
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
CryptoPermissions | back to summary |
---|---|
pack-priv CryptoPermissions() Creates a new |
add | back to summary |
---|---|
public void add(Permission permission) Implements abstract java. Adds a permission object to the
|
elements | back to summary |
---|---|
public Enumeration Implements abstract java. Returns an enumeration of all the
|
getMinimum | back to summary |
---|---|
pack-priv CryptoPermissions getMinimum(CryptoPermissions other) Returns a
|
getMinimum | back to summary |
---|---|
private CryptoPermission[] getMinimum(PermissionCollection thisPc, PermissionCollection thatPc) Get the minimum of the two given
|
getMinimum | back to summary |
---|---|
private CryptoPermission[] getMinimum(int maxKeySize, PermissionCollection pc) Returns all the
|
getPermissionCollection | back to summary |
---|---|
pack-priv PermissionCollection getPermissionCollection(String alg) Returns the
|
getPermissionCollection | back to summary |
---|---|
private PermissionCollection getPermissionCollection(CryptoPermission cryptoPerm) Returns the
|
implies | back to summary |
---|---|
public boolean implies(Permission permission) Implements abstract java. Checks if this object's
|
isEmpty | back to summary |
---|---|
pack-priv boolean isEmpty() Returns |
load | back to summary |
---|---|
pack-priv void load(InputStream in) throws IOException, ParsingException Populates the crypto policy from the specified
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
|
writeObject | back to summary |
---|---|
private void writeObject(ObjectOutputStream s) throws IOException
|