Examples of sendAndWait()


Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        String folderPath1 = path.replace(Configuration.URL_WEBDAV_SERVER, "");
        folderPath1 = "/" + owner
                + ((folderPath1.isEmpty()) ? "" : folderPath1) + "/"
                + folderName;

        client.sendAndWait(ClientPrimitives.OE_UPDATE_PERMS_AFT_FOLDER, path,
                owner, folderPath1, usersSelected);
    }
}
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

                    OperationType.EDIT);
        }

        FileSystemUtils.deletePrivateFiles();

        json = client.sendAndWait(ClientPrimitives.OE_VIEW_INFO, parentPath,
                userId, aclUsers, String.valueOf(true)).getValue("json");

        FileSystemUtils.writePrivateFile("json.txt", json);

        String command[] = { Configuration.EXECUTABLES_PATH + "/wpes1_linux",
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        String aclBEL = tokenFile.getDecryptedACLBEL(remoteFolderName,
                OperationType.DOWNLOAD);

        OverEncryptClient client = new OverEncryptClient();

        client.sendAndWait(ClientPrimitives.OE_UPLMANAGER_FILE, remoteFolder,
                aclBEL, userId);

        String dsaKey = client.sendAndWait(ClientPrimitives.OE_GET_DSA_JSON,
                remoteFolder, "Upload", userId, userId).getValue("dsa");
        String dsaFileName = "DSAKey.txt";
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        OverEncryptClient client = new OverEncryptClient();

        client.sendAndWait(ClientPrimitives.OE_UPLMANAGER_FILE, remoteFolder,
                aclBEL, userId);

        String dsaKey = client.sendAndWait(ClientPrimitives.OE_GET_DSA_JSON,
                remoteFolder, "Upload", userId, userId).getValue("dsa");
        String dsaFileName = "DSAKey.txt";
        FileSystemUtils.writePrivateFile(dsaFileName, dsaKey);

        String aesFileName = tokenFile.getAESKey(remoteFolderName, aclBEL,
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

            }
        }
        users = userId + "," + users;

        if (token.hasSEL()) {
            client.sendAndWait(ClientPrimitives.OE_ENCRYPT_SEL, remoteFolder,
                    userId, fileName, users);
        }

        // TODO Aggiornare i riferimenti alle risorse condivise e i permessi
        // agli utenti relative
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

                passphrase };
        RunnerExecutables.execute(command);

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

        client.sendAndWait(ClientPrimitives.OE_SET_VIEW, parentPath, json);

        FileSystemUtils.deletePrivateFiles();

        client.sendAndWait(ClientPrimitives.OE_DELETE_FOLDER, parentPath,
                token.getFolderIdDB(), folderName);
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        client.sendAndWait(ClientPrimitives.OE_SET_VIEW, parentPath, json);

        FileSystemUtils.deletePrivateFiles();

        client.sendAndWait(ClientPrimitives.OE_DELETE_FOLDER, parentPath,
                token.getFolderIdDB(), folderName);

        tokenFile.deleteFolder(folderName);
    }
}
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        String jsout;

        String aesKeyBEL = tokenFile
                .getAESKey(folderName, aclBEL, "BEL", false);

        Response resp = client.sendAndWait(ClientPrimitives.OE_EDITPERM, path,
                users, userId, aclSEL, aclBEL);

        String newSEL = resp.getValue("newSel");
        String addUser = resp.getValue("addUser");
        String delUser = resp.getValue("delUser");
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        String newSEL = resp.getValue("newSel");
        String addUser = resp.getValue("addUser");
        String delUser = resp.getValue("delUser");

        if (!"nochange".equals(newSEL)) {
            Response tokenInfo = client.sendAndWait(
                    ClientPrimitives.OE_GET_TOKEN_INFO, path, userId);

            String idToken = tokenInfo.getValue("idToken");
            boolean hasMoreTokens = Boolean.valueOf(tokenInfo
                    .getValue("hasMoreTokens"));
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

                    .getValue("hasMoreTokens"));

            acl = aclBEL;

            while (hasMoreTokens) {
                String tokenHBEL = client.sendAndWait(
                        ClientPrimitives.OE_CREATE_JSON_HBEL, path, userId)
                        .getValue("tokenHBEL");

                // HBEL Tokens creation
                FileSystemUtils.writePrivateFile("json.txt", tokenHBEL);
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.