Enum BCCryptoPrimitive
- java.lang.Object
-
- java.lang.Enum<BCCryptoPrimitive>
-
- org.bouncycastle.jsse.java.security.BCCryptoPrimitive
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BCCryptoPrimitive>
public enum BCCryptoPrimitive extends java.lang.Enum<BCCryptoPrimitive>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_CIPHER
KEY_AGREEMENT
KEY_ENCAPSULATION
KEY_WRAP
MAC
MESSAGE_DIGEST
PUBLIC_KEY_ENCRYPTION
SECURE_RANDOM
SIGNATURE
STREAM_CIPHER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BCCryptoPrimitive
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BCCryptoPrimitive[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGE_DIGEST
public static final BCCryptoPrimitive MESSAGE_DIGEST
-
SECURE_RANDOM
public static final BCCryptoPrimitive SECURE_RANDOM
-
BLOCK_CIPHER
public static final BCCryptoPrimitive BLOCK_CIPHER
-
STREAM_CIPHER
public static final BCCryptoPrimitive STREAM_CIPHER
-
MAC
public static final BCCryptoPrimitive MAC
-
KEY_WRAP
public static final BCCryptoPrimitive KEY_WRAP
-
PUBLIC_KEY_ENCRYPTION
public static final BCCryptoPrimitive PUBLIC_KEY_ENCRYPTION
-
SIGNATURE
public static final BCCryptoPrimitive SIGNATURE
-
KEY_ENCAPSULATION
public static final BCCryptoPrimitive KEY_ENCAPSULATION
-
KEY_AGREEMENT
public static final BCCryptoPrimitive KEY_AGREEMENT
-
-
Method Detail
-
values
public static BCCryptoPrimitive[] 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 (BCCryptoPrimitive c : BCCryptoPrimitive.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BCCryptoPrimitive 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
-
-