- All Implemented Interfaces:
Serializable
,Comparable<SecureBasicUtilities.Type>
- Enclosing class:
- SecureBasicUtilities
Get the type of an instance of
SecureBasicUtilities
.
The type indicates whether or not a private and/or
public key is available.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn instance ofSecureBasicUtilities
contains both a private key used for verifying a signature and a private key used for creating a signature.An instance ofSecureBasicUtilities
contains neither a public key nor a private key because a message digest is used instead of a digital signature.An instance ofSecureBasicUtilities
contains a private key used for creating a signature.An instance ofSecureBasicUtilities
contains a private key used for verifying a signature. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecureBasicUtilities.Type
Returns the enum constant of this type with the specified name.static SecureBasicUtilities.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
An instance ofSecureBasicUtilities
contains a private key used for verifying a signature. -
PRIVATE
An instance ofSecureBasicUtilities
contains a private key used for creating a signature. -
BOTH
An instance ofSecureBasicUtilities
contains both a private key used for verifying a signature and a private key used for creating a signature. -
NONE
An instance ofSecureBasicUtilities
contains neither a public key nor a private key because a message digest is used instead of a digital signature.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-