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_CBCAES192_CBCAES256_CBCAES256_CTRDES_CBCDESEDE_CBC
-
Field Summary
Fields Modifier and Type Field Description private intblockSizeprivate intkeyLengthprivate java.lang.String[]sshCipherNames
-
Constructor Summary
Constructors Modifier Constructor Description privateSshCipher(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 BlockCiphercreateBlockCipher(byte[] key, byte[] iv, boolean encrypt)intgetBlockSize()static OpenSshCertificateDecoder.SshCiphergetInstance(java.lang.String cipher)intgetKeyLength()static OpenSshCertificateDecoder.SshCiphervalueOf(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)
-
-