Package freenet.node

Examples of freenet.node.MasterKeysWrongPasswordException


    }

    private void innerSetFilesOnly(File dir, String baseName, boolean writeEncrypted,
            DatabaseKey encryptionKey) throws MasterKeysWrongPasswordException {
        if(writeEncrypted && encryptionKey == null)
            throw new MasterKeysWrongPasswordException();
        File oldWriteToFilename = writeToFilename;
        writeToBucket = makeBucket(dir, baseName, false, writeEncrypted ? encryptionKey : null);
        writeToFilename = makeFilename(dir, baseName, false, writeEncrypted);
        writeToBackupFilename = makeFilename(dir, baseName, true, writeEncrypted);
        if(writeToFilename.equals(oldWriteToFilename)) return;
View Full Code Here


    private boolean innerSetFilesAndLoad(boolean noSerialize, File dir, String baseName,
            boolean writeEncrypted, DatabaseKey encryptionKey, ClientContext context,
            RequestStarterGroup requestStarters, Random random) throws MasterKeysWrongPasswordException {
        if(writeEncrypted && encryptionKey == null)
            throw new MasterKeysWrongPasswordException();
        File clientDat = new File(dir, baseName);
        File clientDatCrypt = new File(dir, baseName+".crypt");
        File clientDatBak = new File(dir, baseName+".bak");
        File clientDatBakCrypt = new File(dir, baseName+".bak.crypt");
        boolean clientDatExists = clientDat.exists();
        boolean clientDatCryptExists = clientDatCrypt.exists();
        boolean clientDatBakExists = clientDatBak.exists();
        boolean clientDatBakCryptExists = clientDatBakCrypt.exists();
        if(encryptionKey == null) {
            if(clientDatCryptExists || clientDatBakCryptExists)
                throw new MasterKeysWrongPasswordException();
        }
        boolean failedSerialize = false;
        PartialLoad loaded = new PartialLoad();
        if(clientDatExists) {
            innerLoad(loaded, makeBucket(dir, baseName, false, null), noSerialize, context, requestStarters, random);
View Full Code Here

TOP

Related Classes of freenet.node.MasterKeysWrongPasswordException

Copyright © 2018 www.massapicom. 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.