Lines Matching refs:permission
120 * Adds a permission object to the PermissionCollection for the
122 * <code>(CryptoPermission)permission.getAlgorithm()</code>.
125 * a new PermissionCollection object (and adds the permission to it)
128 * @param permission the Permission object to add.
135 public void add(Permission permission) {
142 if (!(permission instanceof CryptoPermission))
145 CryptoPermission cryptoPerm = (CryptoPermission)permission;
155 * of the specified permission's algorithm implies the specified
156 * permission. Returns true if the checking succeeded.
158 * @param permission the Permission object to check.
160 * @return true if "permission" is implied by the permissions
164 public boolean implies(Permission permission) {
165 if (!(permission instanceof CryptoPermission)) {
169 CryptoPermission cryptoPerm = (CryptoPermission)permission;