Package java.io

Examples of java.io.Console.readLine()


            encDir = console
                    .readLine(SecurityLogger.ROOT_LOGGER.enterEncryptionDirectory() + " ");
        }

        while (keystoreURL == null || keystoreURL.length() == 0) {
            keystoreURL = console.readLine(SecurityLogger.ROOT_LOGGER.enterKeyStoreURL() + " ");
        }

        char[] keystorePasswd = getSensitiveValue(SecurityLogger.ROOT_LOGGER.enterKeyStorePassword(), SecurityLogger.ROOT_LOGGER.enterKeyStorePasswordAgain());

        try {
View Full Code Here


        char[] keystorePasswd = getSensitiveValue(SecurityLogger.ROOT_LOGGER.enterKeyStorePassword(), SecurityLogger.ROOT_LOGGER.enterKeyStorePasswordAgain());

        try {
            while (salt == null || salt.length() != 8) {
                salt = console.readLine(SecurityLogger.ROOT_LOGGER.enterSalt() + " ");
            }

            String ic = console.readLine(SecurityLogger.ROOT_LOGGER.enterIterationCount() + " ");
            iterationCount = Integer.parseInt(ic);
            vaultNISession = new VaultSession(keystoreURL, new String(keystorePasswd), encDir, salt, iterationCount);
View Full Code Here

        try {
            while (salt == null || salt.length() != 8) {
                salt = console.readLine(SecurityLogger.ROOT_LOGGER.enterSalt() + " ");
            }

            String ic = console.readLine(SecurityLogger.ROOT_LOGGER.enterIterationCount() + " ");
            iterationCount = Integer.parseInt(ic);
            vaultNISession = new VaultSession(keystoreURL, new String(keystorePasswd), encDir, salt, iterationCount);

            while (keystoreAlias == null || keystoreAlias.length() == 0) {
                keystoreAlias = console.readLine(SecurityLogger.ROOT_LOGGER.enterKeyStoreAlias() + " ");
View Full Code Here

            String ic = console.readLine(SecurityLogger.ROOT_LOGGER.enterIterationCount() + " ");
            iterationCount = Integer.parseInt(ic);
            vaultNISession = new VaultSession(keystoreURL, new String(keystorePasswd), encDir, salt, iterationCount);

            while (keystoreAlias == null || keystoreAlias.length() == 0) {
                keystoreAlias = console.readLine(SecurityLogger.ROOT_LOGGER.enterKeyStoreAlias() + " ");
            }

            System.out.println(SecurityLogger.ROOT_LOGGER.initializingVault());
            vaultNISession.startVaultSession(keystoreAlias);
            vaultNISession.vaultConfigurationDisplay();
View Full Code Here

                    System.out.println(SecurityLogger.ROOT_LOGGER.taskStoreSecuredAttribute());
                    char[] attributeValue = VaultInteractiveSession.getSensitiveValue(SecurityLogger.ROOT_LOGGER.interactivePromptSecureAttributeValue(), SecurityLogger.ROOT_LOGGER.interactivePromptSecureAttributeValueAgain());
                    String vaultBlock = null;

                    while (vaultBlock == null || vaultBlock.length() == 0) {
                        vaultBlock = console.readLine(SecurityLogger.ROOT_LOGGER.interactivePromptVaultBlock());
                    }

                    String attributeName = null;

                    while (attributeName == null || attributeName.length() == 0) {
View Full Code Here

                    }

                    String attributeName = null;

                    while (attributeName == null || attributeName.length() == 0) {
                        attributeName = console.readLine(SecurityLogger.ROOT_LOGGER.interactivePromptAttributeName());
                    }
                    try {
                        vaultNISession.addSecuredAttributeWithDisplay(vaultBlock, attributeName, attributeValue);
                    } catch (Exception e) {
                        System.out.println(SecurityLogger.ROOT_LOGGER.problemOcurred() + "\n" + e.getLocalizedMessage());
View Full Code Here

                    System.out.println(SecurityLogger.ROOT_LOGGER.taskVerifySecuredAttributeExists());
                    try {
                        vaultBlock = null;

                        while (vaultBlock == null || vaultBlock.length() == 0) {
                            vaultBlock = console.readLine(SecurityLogger.ROOT_LOGGER.interactivePromptVaultBlock());
                        }

                        attributeName = null;

                        while (attributeName == null || attributeName.length() == 0) {
View Full Code Here

                        }

                        attributeName = null;

                        while (attributeName == null || attributeName.length() == 0) {
                            attributeName = console.readLine(SecurityLogger.ROOT_LOGGER.interactivePromptAttributeName());
                        }
                        if (!vaultNISession.checkSecuredAttribute(vaultBlock, attributeName)) {
                            System.out.println(SecurityLogger.ROOT_LOGGER.interactiveMessageNoValueStored(VaultSession
                                    .blockAttributeDisplayFormat(vaultBlock, attributeName)));
                        } else {
View Full Code Here

                    System.out.println(SecurityLogger.ROOT_LOGGER.taskRemoveSecuredAttribute());
                    try {
                        vaultBlock = null;

                        while (vaultBlock == null || vaultBlock.length() == 0) {
                            vaultBlock = console.readLine(SecurityLogger.ROOT_LOGGER.interactivePromptVaultBlock());
                        }

                        attributeName = null;

                        while (attributeName == null || attributeName.length() == 0) {
View Full Code Here

                        }

                        attributeName = null;

                        while (attributeName == null || attributeName.length() == 0) {
                            attributeName = console.readLine(SecurityLogger.ROOT_LOGGER.interactivePromptAttributeName());
                        }
                        if (!vaultNISession.removeSecuredAttribute(vaultBlock, attributeName)) {
                            System.out.println(SecurityLogger.ROOT_LOGGER.messageAttributeNotRemoved(VaultSession
                                    .blockAttributeDisplayFormat(vaultBlock, attributeName)));
                        } else {
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.