Package unibg.overencrypt.utility

Examples of unibg.overencrypt.utility.Executable.run()


        exec.add(token.getFolderIdDB());
        exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/viewInfos.txt");
        exec.add(passphrase);
        exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/aclBEL.txt");
        exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/aclSEL.txt");
        exec.run();

        String decryptedAclBEL = FileSystemUtils.readPrivateFile("aclBEL.txt");
        String decryptedAclSEL = FileSystemUtils.readPrivateFile("aclSEL.txt");

        FileSystemUtils.deletePrivateFiles();
View Full Code Here


            exec.add(passphrase);
            exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/AESKey.txt");
            exec.add(token.getFolderIdGraph());
            exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/next.txt");
            exec.add(acl);
            exec.run();
        } else {
            String tokenID = client
                    .sendAndWait(ClientPrimitives.OE_GET_INFO, folderPath, acl,
                            encryptionLevel, token.getOwnerID(), userID,
                            token.getFolderIdGraph()).getValue("tokenID")
View Full Code Here

                exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH
                        + "/AESKey.txt");
                exec.add(tokenID);
                exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH
                        + "/nextToken.txt");
                exec.run();

                nextToken = FileSystemUtils.readPrivateFile("nextToken.txt");

                FileSystemUtils.deletePrivateFile("Json.txt");
View Full Code Here

                            + "/next.txt");
                    if (!firstStepUpdate) {
                        exec.add(passphrase);
                    }
                    exec.add(acl);
                    exec.run();

                    nextToken = FileSystemUtils.readPrivateFile("next.txt");
                    String jsonOut = FileSystemUtils
                            .readPrivateFile("Noteout.txt");
View Full Code Here

                    + "/JsonLast.txt");
            exec.add(passphrase);
            exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/AesKey.txt");
            exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/Note.txt");
            exec.add(acl);
            exec.run();

            String jsonOut = FileSystemUtils.readPrivateFile("Noteout.txt");

            client.sendAndWait(ClientPrimitives.OE_TOKEN, folderPath, owner,
                    jsonOut);
View Full Code Here

        exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/" + dsaFileName);
        exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/" + aesFileName);
        exec.add(localFolder + "/" + fileName);
        exec.add(Configuration.LOCAL_TMP_PATH + "/" + fileName);
        exec.add(passphrase);
        exec.run();

        String localFilePath = Configuration.LOCAL_TMP_PATH + "/" + fileName;

        WebDAVClient davClient = new ApacheWebDAVClient();
        davClient.upload(localFilePath, remoteFolder + fileName);
View Full Code Here

        exec.add(tempEncryptedFilePath);

        logger.debug(destinationPath);

        exec.add(destinationPath);
        exec.run();

        logger.debug(exec.toString());

        // FileSystemUtils.deletePrivateFiles();
        // FileSystemUtils.deleteAllTempPrivateResources();
View Full Code Here

                exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH
                        + "/json.txt");
                exec.add(acl);
                exec.add(idToken);
                exec.add(passphrase);
                exec.run();

                String jsonout = FileSystemUtils.readPrivateFile("jsonout.txt");

                // Put new tokens HBEL in server DB
                hasMoreTokens = Boolean.valueOf(client.sendAndWait(
View Full Code Here

                        + "/json.txt");
                exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH
                        + "/jsonout.txt");
                exec.add(passphrase);
                exec.add(userId);
                exec.run();

                jsout = FileSystemUtils.readPrivateFile("jsonout.txt");

                client.sendAndWait(ClientPrimitives.OE_SET_VIEW, path, jsout);
View Full Code Here

                exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH
                        + "/json.txt");
                exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH
                        + "/jsonout.txt");
                exec.add(passphrase);
                exec.run();
                jsout = FileSystemUtils.readFile("jsonout.txt");

                client.sendAndWait(ClientPrimitives.OE_SET_VIEW, path, jsout);
                FileSystemUtils.deletePrivateFiles();
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.