Package com.trilead.ssh2.signature
Enum OpenSshCertificateDecoder.SshCipher
- java.lang.Object
-
- java.lang.Enum<OpenSshCertificateDecoder.SshCipher>
-
- com.trilead.ssh2.signature.OpenSshCertificateDecoder.SshCipher
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OpenSshCertificateDecoder.SshCipher>
- Enclosing class:
- OpenSshCertificateDecoder
private static enum OpenSshCertificateDecoder.SshCipher extends java.lang.Enum<OpenSshCertificateDecoder.SshCipher>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES128_CBC
AES192_CBC
AES256_CBC
AES256_CTR
DES_CBC
DESEDE_CBC
-
Field Summary
Fields Modifier and Type Field Description private int
blockSize
private int
keyLength
private java.lang.String[]
sshCipherNames
-
Constructor Summary
Constructors Modifier Constructor Description private
SshCipher(int keyLength, int blockSize, java.lang.String cipherName, java.lang.String... cipherAliases)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract BlockCipher
createBlockCipher(byte[] key, byte[] iv, boolean encrypt)
int
getBlockSize()
static OpenSshCertificateDecoder.SshCipher
getInstance(java.lang.String cipher)
int
getKeyLength()
static OpenSshCertificateDecoder.SshCipher
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OpenSshCertificateDecoder.SshCipher[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DESEDE_CBC
public static final OpenSshCertificateDecoder.SshCipher DESEDE_CBC
-
DES_CBC
public static final OpenSshCertificateDecoder.SshCipher DES_CBC
-
AES128_CBC
public static final OpenSshCertificateDecoder.SshCipher AES128_CBC
-
AES192_CBC
public static final OpenSshCertificateDecoder.SshCipher AES192_CBC
-
AES256_CBC
public static final OpenSshCertificateDecoder.SshCipher AES256_CBC
-
AES256_CTR
public static final OpenSshCertificateDecoder.SshCipher AES256_CTR
-
-
Method Detail
-
values
public static OpenSshCertificateDecoder.SshCipher[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OpenSshCertificateDecoder.SshCipher c : OpenSshCertificateDecoder.SshCipher.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenSshCertificateDecoder.SshCipher valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
createBlockCipher
abstract BlockCipher createBlockCipher(byte[] key, byte[] iv, boolean encrypt)
-
getBlockSize
public int getBlockSize()
-
getKeyLength
public int getKeyLength()
-
getInstance
public static OpenSshCertificateDecoder.SshCipher getInstance(java.lang.String cipher)
-
-