public boolean implies(Permission permission){
  if (!(permission instanceof CryptoPermission))   return false;
  CryptoPermission cp=(CryptoPermission)permission;
  Enumeration<Permission> e=permissions.elements();
  while (e.hasMoreElements()) {
    CryptoPermission x=(CryptoPermission)e.nextElement();
    if (x.implies(cp)) {
      return true;
    }
  }
  return false;
}

public boolean implies ( Permission permission ) { if ( ! ( permission instanceof CryptoPermission ) ) return false ; CryptoPermission cp = ( CryptoPermission ) permission ; Enumeration < Permission > e = permissions . elements ( ) ; while ( e . hasMoreElements ( ) ) { CryptoPermission x = ( CryptoPermission ) e . nextElement ( ) ; if ( x . implies ( cp ) ) { return true ; } } return false ; }
check and see if this cryptopermission object implies the given permission object .
