public class SshCipher extends Object implements Serializable
SshCipher instances).| Modifier and Type | Field and Description |
|---|---|
static SshCipher |
_3DES_CBC |
static SshCipher |
AES128_CBC |
static SshCipher |
AES128_CTR |
static SshCipher |
AES192_CBC |
static SshCipher |
AES192_CTR |
static SshCipher |
AES256_CBC |
static SshCipher |
AES256_CTR |
static SshCipher |
ARCFOUR128 |
static SshCipher |
ARCFOUR256 |
int |
blockLength
The cipher block length in bytes
|
static SshCipher |
BLOWFISH_CBC |
String |
provider
The JCE provider name
For example "BC" for BouncyCastle or null for the default Sun provider |
| Constructor and Description |
|---|
SshCipher(String sshAlgorithmName,
String jceAlgorithmName,
int blockLength,
int keyLength) |
SshCipher(String sshAlgorithmName,
String jceAlgorithmName,
String provider,
int blockLength,
int keyLength) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockLength() |
String |
getJceAlgorithmName() |
int |
getKeyLength() |
String |
getProvider() |
String |
getSshAlgorithmName() |
void |
setBlockLength(int blockLength) |
void |
setJceAlgorithmName(String jceAlgorithmName) |
void |
setKeyLength(int keyLength) |
void |
setProvider(String provider) |
void |
setSshAlgorithmName(String sshAlgorithmName) |
String |
toString() |
public static final SshCipher AES128_CBC
public static final SshCipher AES192_CBC
public static final SshCipher AES256_CBC
public static final SshCipher AES128_CTR
public static final SshCipher AES192_CTR
public static final SshCipher AES256_CTR
public static final SshCipher _3DES_CBC
public static final SshCipher BLOWFISH_CBC
public static final SshCipher ARCFOUR128
public static final SshCipher ARCFOUR256
public String provider
public int blockLength
public SshCipher(String sshAlgorithmName, String jceAlgorithmName, int blockLength, int keyLength)
sshAlgorithmName - the SSH algorithm namejceAlgorithmName - the JCE algorithm nameblockLength - the cipher block length in byteskeyLength - the algorithm key length in bytespublic SshCipher(String sshAlgorithmName, String jceAlgorithmName, String provider, int blockLength, int keyLength)
sshAlgorithmName - the SSH algorithm namejceAlgorithmName - the JCE algorithm nameprovider - the JCE provider nameblockLength - the cipher block length in byteskeyLength - the algorithm key length in bytespublic String getSshAlgorithmName()
public String getJceAlgorithmName()
public String getProvider()
public int getBlockLength()
public int getKeyLength()
public void setSshAlgorithmName(String sshAlgorithmName)
sshAlgorithmName - SSH algorithm namepublic void setJceAlgorithmName(String jceAlgorithmName)
jceAlgorithmName - JCE algorithm namepublic void setProvider(String provider)
provider - the JCE provider namepublic void setBlockLength(int blockLength)
blockLength - the cipher block length in bytespublic void setKeyLength(int keyLength)
keyLength - the key length in bytesCopyright © 2017 Axway Software. All rights reserved.