org.productivity.java.habitat4j.crypto.decryptor.key.generic
Class GenericKeyInfo

java.lang.Object
  extended by org.productivity.java.habitat4j.crypto.decryptor.StaticCrypto
      extended by org.productivity.java.habitat4j.crypto.decryptor.key.generic.GenericKeyInfo
All Implemented Interfaces:
java.io.Serializable, KeyInfoIF

public class GenericKeyInfo
extends StaticCrypto
implements KeyInfoIF

See Also:
Serialized Form

Field Summary
protected  java.lang.String algorithm
           
protected  byte[] iv
           
protected  byte[] key
           
protected  java.security.Key keySpec
           
 
Constructor Summary
GenericKeyInfo(java.lang.String algorithm)
           
GenericKeyInfo(java.lang.String algorithm, java.lang.String in, java.lang.String delimiter)
           
 
Method Summary
 java.io.Serializable getIv()
           
 java.io.Serializable getKey()
           
 java.security.Key getKeySpec()
           
protected  void initialize(java.lang.String algorithm, java.lang.String in, java.lang.String delimiter)
           
 void setIv(byte[] iv)
           
 void setKey(byte[] key)
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Field Detail

key

protected byte[] key

iv

protected byte[] iv

keySpec

protected java.security.Key keySpec

algorithm

protected java.lang.String algorithm
Constructor Detail

GenericKeyInfo

public GenericKeyInfo(java.lang.String algorithm)

GenericKeyInfo

public GenericKeyInfo(java.lang.String algorithm,
                      java.lang.String in,
                      java.lang.String delimiter)
               throws DecryptorException
Throws:
DecryptorException
Method Detail

initialize

protected void initialize(java.lang.String algorithm,
                          java.lang.String in,
                          java.lang.String delimiter)
                   throws DecryptorException
Throws:
DecryptorException

getIv

public java.io.Serializable getIv()
Specified by:
getIv in interface KeyInfoIF

setIv

public void setIv(byte[] iv)

getKey

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

setKey

public void setKey(byte[] key)

getKeySpec

public java.security.Key getKeySpec()
                             throws DecryptorException
Throws:
DecryptorException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object