Package org.apache.poi.poifs.crypt
Enum CipherAlgorithm
- java.lang.Object
-
- java.lang.Enum<CipherAlgorithm>
-
- org.apache.poi.poifs.crypt.CipherAlgorithm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CipherAlgorithm>
public enum CipherAlgorithm extends java.lang.Enum<CipherAlgorithm>
-
-
Field Summary
Fields Modifier and Type Field Description int[]
allowedKeySize
int
blockSize
int
defaultKeySize
int
ecmaId
int
encryptedVerifierHashLength
java.lang.String
jceId
boolean
needsBouncyCastle
CipherProvider
provider
java.lang.String
xmlId
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CipherAlgorithm
fromEcmaId(int ecmaId)
static CipherAlgorithm
fromXmlId(java.lang.String xmlId, int keySize)
static CipherAlgorithm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CipherAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
rc4
public static final CipherAlgorithm rc4
-
aes128
public static final CipherAlgorithm aes128
-
aes192
public static final CipherAlgorithm aes192
-
aes256
public static final CipherAlgorithm aes256
-
rc2
public static final CipherAlgorithm rc2
-
des
public static final CipherAlgorithm des
-
des3
public static final CipherAlgorithm des3
-
des3_112
public static final CipherAlgorithm des3_112
-
rsa
public static final CipherAlgorithm rsa
-
-
Field Detail
-
provider
public final CipherProvider provider
-
jceId
public final java.lang.String jceId
-
ecmaId
public final int ecmaId
-
defaultKeySize
public final int defaultKeySize
-
allowedKeySize
public final int[] allowedKeySize
-
blockSize
public final int blockSize
-
encryptedVerifierHashLength
public final int encryptedVerifierHashLength
-
xmlId
public final java.lang.String xmlId
-
needsBouncyCastle
public final boolean needsBouncyCastle
-
-
Method Detail
-
values
public static CipherAlgorithm[] 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 (CipherAlgorithm c : CipherAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CipherAlgorithm 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
-
fromEcmaId
public static CipherAlgorithm fromEcmaId(int ecmaId)
-
fromXmlId
public static CipherAlgorithm fromXmlId(java.lang.String xmlId, int keySize)
-
-