org.productivity.java.habitat4j.crypto.decryptor.keyreader.classpath
Class ClasspathKeyReader

java.lang.Object
  extended by org.productivity.java.habitat4j.crypto.decryptor.StaticCrypto
      extended by org.productivity.java.habitat4j.crypto.decryptor.keyreader.KeyReader
          extended by org.productivity.java.habitat4j.crypto.decryptor.keyreader.classpath.ClasspathKeyReader

public class ClasspathKeyReader
extends KeyReader


Field Summary
protected static int BYTE_BUFFER_SIZE
           
protected static java.lang.String CHAR_SET
           
 
Fields inherited from class org.productivity.java.habitat4j.crypto.decryptor.keyreader.KeyReader
aliasMap, config, DEFAULT_KEYREADER_ALIASES, KEY_PROTECTOR_CLASS, KEYREADER_ALIAS_MAP
 
Constructor Summary
ClasspathKeyReader()
           
 
Method Summary
protected  byte[] readInputStream(java.io.InputStream inputStream)
           
protected  java.lang.String readKeyFromClasspath(java.lang.String keyLocation)
           
 java.io.Serializable readProtectedKey()
           
 
Methods inherited from class org.productivity.java.habitat4j.crypto.decryptor.keyreader.KeyReader
addKeyReaderAlias, createKeyProtector, createKeyReader, initialize, lookupAlias, readKey, setKeyProtector
 
Methods inherited from class org.productivity.java.habitat4j.crypto.decryptor.StaticCrypto
createString, decode, encode, findPadEndIndex, getBytes, pad, removePad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE_BUFFER_SIZE

protected static final int BYTE_BUFFER_SIZE
See Also:
Constant Field Values

CHAR_SET

protected static java.lang.String CHAR_SET
Constructor Detail

ClasspathKeyReader

public ClasspathKeyReader()
Method Detail

readInputStream

protected byte[] readInputStream(java.io.InputStream inputStream)
                          throws DecryptorException
Throws:
DecryptorException

readKeyFromClasspath

protected java.lang.String readKeyFromClasspath(java.lang.String keyLocation)
                                         throws DecryptorException
Throws:
DecryptorException

readProtectedKey

public java.io.Serializable readProtectedKey()
                                      throws DecryptorException
Specified by:
readProtectedKey in class KeyReader
Throws:
DecryptorException