Package org.rat.free.security.makifx.base

Examples of org.rat.free.security.makifx.base.KeySecretData


        GEN_KEY = key_secret_data.getKey();
        key_secret_data.encrypt(master_username, maki_file_key);

        try {

            KeySecretData test_ksd = KeySecretData.decrypt(master_username, maki_file_key);
            log("** KeySecretData TEST RELOAD KEY = " + test_ksd);

            first_run = true;

            if (Constants.SAVE_XML_TO_TEST) {
View Full Code Here


                    String secret_key = readable.getKey();
                    if (secret_key == null || secret_key.length() == 0) {
                        throw new Exception("Invalid key in json file.");
                    }

                    KeySecretData ksd = new KeySecretData();
                    ksd.setKey(getUTF8Bytes(secret_key));
                    ksd.setProperties(new HashMap(readable.getProperties()));

                    ksd.encrypt(master_username, maki_file_key);

                    this.GEN_KEY = ksd.getKey();

                    enc_map = Login.firstEncyptedMap();

                    enc_map.setSettings(new HashMap(readable.getSettings()));
View Full Code Here

        GEN_KEY = key_secret_data.getKey();
        key_secret_data.encrypt(master_username, maki_file_key);

        try {

            KeySecretData test_ksd = KeySecretData.decrypt(master_username, maki_file_key);
            log("** KeySecretData TEST RELOAD KEY = " + test_ksd);

            first_run = true;

            if (Constants.SAVE_XML_TO_TEST) {
View Full Code Here

                    String secret_key = readable.getKey();
                    if (secret_key == null || secret_key.length() == 0) {
                        throw new Exception("Invalid key in json file.");
                    }

                    KeySecretData ksd = new KeySecretData();
                    ksd.setKey(getUTF8Bytes(secret_key));
                    ksd.setProperties(new HashMap(readable.getProperties()));

                    ksd.encrypt(master_username, maki_file_key);

                    this.GEN_KEY = ksd.getKey();

                    enc_map = Login.firstEncyptedMap(master_password);

                    enc_map.setSettings(new HashMap(readable.getSettings()));
View Full Code Here

        GEN_KEY = key_secret_data.getKey();
        key_secret_data.encrypt(master_username, maki_file_key);

        try {

            KeySecretData test_ksd = KeySecretData.decrypt(master_username, maki_file_key);
            log("** KeySecretData TEST RELOAD KEY = " + test_ksd);

            first_run = true;

            if (Constants.SAVE_XML_TO_TEST) {
View Full Code Here

                    String secret_key = readable.getKey();
                    if (secret_key == null || secret_key.length() == 0) {
                        throw new Exception("Invalid key in json file.");
                    }

                    KeySecretData ksd = new KeySecretData();
                    ksd.setKey(getUTF8Bytes(secret_key));
                    ksd.setProperties(new HashMap(readable.getProperties()));

                    ksd.encrypt(master_username, maki_file_key);

                    this.GEN_KEY = ksd.getKey();

                    enc_map = Login.firstEncyptedMap();

                    enc_map.setSettings(new HashMap(readable.getSettings()));
View Full Code Here

import org.rat.free.security.makifx.core.utils.UtilityFX;

public class KeySecretDataFactory {

    public static KeySecretData create() {
        KeySecretData ksd = new KeySecretData();
        KeyValueMaker maker = MakiDI.get().fromStock(KeyValueMaker.class);
        String k_gen = maker.doPassWithAllSpecial(1024, true, true, true);
        ksd.setKey(UtilityFX.getUTF8Bytes(k_gen));
        return ksd;
    }
View Full Code Here

TOP

Related Classes of org.rat.free.security.makifx.base.KeySecretData

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.