org.polyglotted.crypto.utils
Class FileCryptoUtils

java.lang.Object
  extended by org.polyglotted.crypto.utils.FileCryptoUtils

public abstract class FileCryptoUtils
extends Object

PropertyFileCrypto is a attrib-repo utility that encrypts and decrypts '.properties' files.This file encrypts only property keys that are prefixed with an ampersand

Author:
Shankar Vasudevan

Field Summary
protected static String EQUALS
           
 
Constructor Summary
FileCryptoUtils()
           
 
Method Summary
static void cryptCopy(AbstractCrypto crypto, InputStream propertyIs, OutputStream output, String prefix)
          Copy the contents of the inputFile into outputFile while en(/de)crypting the contents of a line prefixed with a special character
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUALS

protected static final String EQUALS
See Also:
Constant Field Values
Constructor Detail

FileCryptoUtils

public FileCryptoUtils()
Method Detail

cryptCopy

public static void cryptCopy(AbstractCrypto crypto,
                             InputStream propertyIs,
                             OutputStream output,
                             String prefix)
Copy the contents of the inputFile into outputFile while en(/de)crypting the contents of a line prefixed with a special character

Parameters:
crypto - the cryptography algorithm to be used
propertyIs - the property file input stream
output - the output stream to write the decrypted values
prefix - the String prefix for lines which have to be decryted


Copyright © 2012-2013 Polyglotted Org. All Rights Reserved.