com.jscape.inet.ssh.transport
Class AlgorithmFactory.CipherEntry
java.lang.Object
com.jscape.inet.ssh.transport.AlgorithmFactory.CipherEntry
- Enclosing class:
- AlgorithmFactory
public static class AlgorithmFactory.CipherEntry
- extends java.lang.Object
The cipher entry.
Constructor Summary |
AlgorithmFactory.CipherEntry(java.lang.String sshName,
java.lang.String jceName,
int keyLength)
Creates the new entry instance. |
Method Summary |
int |
blockLength(java.lang.String provider)
Returns the cipher block length. |
javax.crypto.Cipher |
cipherFor(byte[] keyData,
byte[] ivData,
int opmode,
java.lang.String provider)
Creates a cipher. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sshName
public final java.lang.String sshName
jceName
public final java.lang.String jceName
keyLength
public final int keyLength
AlgorithmFactory.CipherEntry
public AlgorithmFactory.CipherEntry(java.lang.String sshName,
java.lang.String jceName,
int keyLength)
- Creates the new entry instance.
- Parameters:
sshName
- the SSH namejceName
- the JCE algorithm namekeyLength
- the algorithm key length
cipherFor
public javax.crypto.Cipher cipherFor(byte[] keyData,
byte[] ivData,
int opmode,
java.lang.String provider)
throws TransportException
- Creates a cipher.
- Parameters:
keyData
- the key dataivData
- the IV dataopmode
- the cipher modeprovider
- the provider
- Returns:
- cipher
- Throws:
TransportException
- if an error occurs
blockLength
public int blockLength(java.lang.String provider)
- Returns the cipher block length.
- Parameters:
provider
- the provider
- Returns:
- the cipher block length in bytes
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved