org.productivity.java.habitat4j.crypto.decryptor.keyprotector.generic
Class GenericKeyProtector

java.lang.Object
  extended by org.productivity.java.habitat4j.crypto.decryptor.StaticCrypto
      extended by org.productivity.java.habitat4j.crypto.decryptor.generic.GenericCrypto
          extended by org.productivity.java.habitat4j.crypto.decryptor.keyprotector.generic.GenericKeyProtector
All Implemented Interfaces:
java.io.Serializable, KeyProtectorIF

public abstract class GenericKeyProtector
extends GenericCrypto
implements KeyProtectorIF

See Also:
Serialized Form

Field Summary
protected  KeyInfoIF keyInfo
           
 
Fields inherited from class org.productivity.java.habitat4j.crypto.decryptor.generic.GenericCrypto
config
 
Constructor Summary
GenericKeyProtector()
           
 
Method Summary
 void configure(GenericCryptoConfig config, KeyInfoIF keyInfo)
           
 KeyInfoIF decrypt(java.io.Serializable in)
           
abstract  void initialize()
           
 
Methods inherited from class org.productivity.java.habitat4j.crypto.decryptor.generic.GenericCrypto
createHash, createString, decrypt, getBytes, getKeyReader, initialize, xcrypt
 
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

keyInfo

protected KeyInfoIF keyInfo
Constructor Detail

GenericKeyProtector

public GenericKeyProtector()
Method Detail

initialize

public abstract void initialize()
                         throws DecryptorException
Specified by:
initialize in interface KeyProtectorIF
Throws:
DecryptorException

configure

public void configure(GenericCryptoConfig config,
                      KeyInfoIF keyInfo)
               throws DecryptorException
Throws:
DecryptorException

decrypt

public KeyInfoIF decrypt(java.io.Serializable in)
                  throws DecryptorException
Specified by:
decrypt in interface KeyProtectorIF
Throws:
DecryptorException