Package org.kiwiproject.security
Enum Class KeyStoreType
- All Implemented Interfaces:
Serializable,Comparable<KeyStoreType>,Constable
KeyStore types that can be specified when generating an instance of
KeyStore using
KeyStore.getInstance(String).- Implementation Note:
- These are from the Java 11 documentation, specifically from "Java Security Standard Algorithm Names".
Also note that while that document lists the types in lower case, the JDK actually uppercases the protocol so using
the actual uppercase enum names here works (until and unless they add new protocols that contain things like dots
or underscores or other such characters that aren't allowed as enum names). In any case, the types are
case-insensitive in the JDK. See the
Providerclass, in the constructor of the nested (and private)ServiceKeyclass where the following LOC resides:algorithm = algorithm.toUpperCase(ENGLISH);
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA domain keystore is a collection of keystores presented as a single logical keystore.The proprietary keystore implementation provided by the SunJCE provider.The proprietary keystore implementation provided by the SUN provider.A keystore backed by a PCKS #11 token.The transfer syntax for personal identity information as defined in PKCS #12. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe keystore type as a String which can be directly supplied toKeyStore.getInstance(String). -
Method Summary
Modifier and TypeMethodDescriptiongetValue()The keystore type as a String which can be directly supplied toKeyStore.getInstance(String).static KeyStoreTypeReturns the enum constant of this class with the specified name.static KeyStoreType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JCEKS
The proprietary keystore implementation provided by the SunJCE provider. -
JKS
The proprietary keystore implementation provided by the SUN provider. -
DKS
A domain keystore is a collection of keystores presented as a single logical keystore. It is specified by configuration data whose syntax is described in theDomainLoadStoreParameterclass. -
PKCS11
A keystore backed by a PCKS #11 token. -
PKCS12
The transfer syntax for personal identity information as defined in PKCS #12.
-
-
Field Details
-
value
The keystore type as a String which can be directly supplied toKeyStore.getInstance(String).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
The keystore type as a String which can be directly supplied toKeyStore.getInstance(String).
-