Secure iNet Factory

com.jscape.inet.ssh.transport
Class AlgorithmFactory.CipherEntry

java.lang.Object
  extended by com.jscape.inet.ssh.transport.AlgorithmFactory.CipherEntry
Enclosing class:
AlgorithmFactory

public static class AlgorithmFactory.CipherEntry
extends java.lang.Object

The cipher entry.


Field Summary
 java.lang.String jceName
           
 int keyLength
           
 java.lang.String sshName
           
 
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
 

Field Detail

sshName

public final java.lang.String sshName

jceName

public final java.lang.String jceName

keyLength

public final int keyLength
Constructor Detail

AlgorithmFactory.CipherEntry

public AlgorithmFactory.CipherEntry(java.lang.String sshName,
                                    java.lang.String jceName,
                                    int keyLength)
Creates the new entry instance.

Parameters:
sshName - the SSH name
jceName - the JCE algorithm name
keyLength - the algorithm key length
Method Detail

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 data
ivData - the IV data
opmode - the cipher mode
provider - 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

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved