|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.monica.javacom.ssh.MJCSSHArcfourCipher
Class for implementing the ARCFOUR stream cipher as defined in draft-kaukonen-cipher-arcfour.
Constructor Summary | |
MJCSSHArcfourCipher()
|
Method Summary | |
java.lang.String |
decode(java.lang.String data)
Method for decryption of a String. |
java.lang.String |
encode(java.lang.String data)
Method for encryption of a String. |
java.lang.String |
getCipherAlgorithmName()
Returns the MJC name of the of the MJCSSHCipherAlgorithm. |
java.lang.String |
getCipherAlgorithmVersion()
Returns the MJC version of the MJCSSHCipherAlgorithm. |
int |
getCipherBlockSize()
Returns the length of the minimal encryption length. |
java.lang.Object |
getState()
Returns the state of the cipher mechanism. |
void |
setKeys(java.lang.String key,
java.lang.String IV)
Method for setting the cryptographic key and the initialization vector. |
void |
setState(java.lang.Object o)
Sets the state of the cipher mechanism. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MJCSSHArcfourCipher()
Method Detail |
public java.lang.String getCipherAlgorithmName()
MJCSSHCipherAlgorithm
getCipherAlgorithmName
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
public java.lang.String getCipherAlgorithmVersion()
MJCSSHCipherAlgorithm
getCipherAlgorithmVersion
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
public void setKeys(java.lang.String key, java.lang.String IV)
MJCSSHCipherAlgorithm
setKeys
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
String
- key: the key for the cryptographystring
- IV: the initialization vectorpublic void setState(java.lang.Object o)
MJCSSHCipherAlgorithm
setState
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
Object
- o: the to be set state of the cipher mechanismpublic java.lang.Object getState()
MJCSSHCipherAlgorithm
getState
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
public java.lang.String encode(java.lang.String data)
MJCSSHCipherAlgorithm
encode
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
String
- s: the String to be encryptedpublic java.lang.String decode(java.lang.String data)
MJCSSHCipherAlgorithm
decode
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
String
- s: the String to be decryptedpublic int getCipherBlockSize()
MJCSSHCipherAlgorithm
getCipherBlockSize
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |