src/share/classes/javax/crypto/CryptoPermission.java
Print this page
*** 469,480 ****
* @see java.security.PermissionCollection
*
* @author Sharon Liu
*/
final class CryptoPermissionCollection extends PermissionCollection
! implements Serializable {
!
private static final long serialVersionUID = -511215555898802763L;
private Vector<Permission> permissions;
/**
--- 469,480 ----
* @see java.security.PermissionCollection
*
* @author Sharon Liu
*/
final class CryptoPermissionCollection extends PermissionCollection
! implements Serializable
! {
private static final long serialVersionUID = -511215555898802763L;
private Vector<Permission> permissions;
/**
*** 491,502 ****
* @param permission the Permission object to add.
*
* @exception SecurityException - if this CryptoPermissionCollection
* object has been marked <i>readOnly</i>.
*/
! public void add(Permission permission)
! {
if (isReadOnly())
throw new SecurityException("attempt to add a Permission " +
"to a readonly PermissionCollection");
if (!(permission instanceof CryptoPermission))
--- 491,501 ----
* @param permission the Permission object to add.
*
* @exception SecurityException - if this CryptoPermissionCollection
* object has been marked <i>readOnly</i>.
*/
! public void add(Permission permission) {
if (isReadOnly())
throw new SecurityException("attempt to add a Permission " +
"to a readonly PermissionCollection");
if (!(permission instanceof CryptoPermission))
*** 507,517 ****
/**
* Check and see if this CryptoPermission object implies
* the given Permission object.
*
! * @param p the Permission object to compare
*
* @return true if the given permission is implied by this
* CryptoPermissionCollection, false if not.
*/
public boolean implies(Permission permission) {
--- 506,516 ----
/**
* Check and see if this CryptoPermission object implies
* the given Permission object.
*
! * @param permission the Permission object to compare
*
* @return true if the given permission is implied by this
* CryptoPermissionCollection, false if not.
*/
public boolean implies(Permission permission) {
*** 536,545 ****
* in the container.
*
* @return an enumeration of all the CryptoPermission objects.
*/
! public Enumeration<Permission> elements()
! {
return permissions.elements();
}
}
--- 535,543 ----
* in the container.
*
* @return an enumeration of all the CryptoPermission objects.
*/
! public Enumeration<Permission> elements() {
return permissions.elements();
}
}