|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.util.CypherKey
public class CypherKey
CypherKey provides a very easy-to-use, yet effective encryption mechanism. The key (including the password) is transient.
| Constructor Summary | |
|---|---|
CypherKey(char[] password)
Creates a new CypherKey object. |
|
CypherKey(java.lang.String algorithm,
byte[] salt,
int iterationCount,
char[] password)
Creates a new CypherKey object. |
|
| Method Summary | |
|---|---|
byte[] |
decode(byte[] encrypted)
decodes the given byte array |
byte[] |
encode(byte[] plainSource)
DOCUMENT ME! |
java.lang.String |
getKeySignature()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CypherKey(char[] password)
throws java.security.GeneralSecurityException
password - DOCUMENT ME!
java.security.GeneralSecurityException - DOCUMENT ME!
public CypherKey(java.lang.String algorithm,
byte[] salt,
int iterationCount,
char[] password)
throws java.security.GeneralSecurityException
algorithm - DOCUMENT ME!salt - DOCUMENT ME!iterationCount - DOCUMENT ME!password - DOCUMENT ME!
java.security.GeneralSecurityException - DOCUMENT ME!| Method Detail |
|---|
public byte[] decode(byte[] encrypted)
SynchronousKey
decode in interface SynchronousKeyencrypted - DOCUMENT ME!
public byte[] encode(byte[] plainSource)
encode in interface SynchronousKeyplainSource - DOCUMENT ME!
java.lang.RuntimeException - DOCUMENT ME!public java.lang.String getKeySignature()
getKeySignature in interface SynchronousKey
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||