|
DBAbstract API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ro.raducora.utils.encryption.key.StreamEncryptionKey
Constructor Summary | |
StreamEncryptionKey()
|
Method Summary | |
java.lang.Object |
clone()
Clone Supported. |
abstract byte[] |
decrypt(byte[] toDecrypt,
int offset,
int length)
Takes an array of bytes and decrypts it |
abstract byte[] |
encrypt(byte[] toEncrypt,
int offset,
int length)
Takes an array of bytes and encodes it with key |
abstract boolean |
isExplicitlySet()
|
abstract void |
reset()
Resets the encryption/decryption process,initializez variables,etc so that the key can be used as a brand new one |
abstract void |
setKey(java.lang.String key)
Takes a string and makes a key |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamEncryptionKey()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public abstract void setKey(java.lang.String key) throws java.lang.Exception
key
- the String
java.lang.Exception
public abstract boolean isExplicitlySet()
public abstract void reset() throws java.lang.Exception
java.lang.Exception
public abstract byte[] encrypt(byte[] toEncrypt, int offset, int length)
toEncrypt
- bytes to encryptoffset
- where to beginlength
- how many bytes to process
public abstract byte[] decrypt(byte[] toDecrypt, int offset, int length)
toDecrypt
- bytes to decryptoffset
- where to beginlength
- how many bytes to process
|
DBAbstract API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |