|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.monica.javacom.ssh.MJCSSHNoneCiphering
Class for implementing the "none" ciphering method. This means no ciphering at all, eg. a transparent channel.
Constructor Summary | |
MJCSSHNoneCiphering()
|
Method Summary | |
java.lang.String |
decode(java.lang.String encoded_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 MJCSSHNoneCiphering()
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 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 encoded_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
public java.lang.Object getState()
MJCSSHCipherAlgorithm
getState
in interface MJCSSHCipherAlgorithm
com.monica.javacom.interfaces.MJCSSHCipherAlgorithm
public 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 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 vector
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |