Package org.wso2.carbon.utils.security
Enum Class KeystoreUtils.StoreFileType
java.lang.Object
java.lang.Enum<KeystoreUtils.StoreFileType>
org.wso2.carbon.utils.security.KeystoreUtils.StoreFileType
- All Implemented Interfaces:
Serializable,Comparable<KeystoreUtils.StoreFileType>,Constable
- Enclosing class:
KeystoreUtils
A collection of file type extensions against the store file type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StringIf the `Security.TenantKeyStore.Type` is defined, return the type, otherwise return FALLBACK_TENANTED_KEYSTORE_FILE_TYPE.static StringgetExtension(KeystoreUtils.StoreFileType tileType) Get extension of the store file type (ex: .jks, .p12).static voidvalidateFileType(String fileType) Check the configured store file type is supporting (ex: JKS, PKCS12).static KeystoreUtils.StoreFileTypeReturns the enum constant of this class with the specified name.static KeystoreUtils.StoreFileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JKS
-
PKCS12
-
-
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
-
getExtension
Get extension of the store file type (ex: .jks, .p12).- Throws:
IllegalArgumentException- the File type .
-
defaultFileType
If the `Security.TenantKeyStore.Type` is defined, return the type, otherwise return FALLBACK_TENANTED_KEYSTORE_FILE_TYPE. -
validateFileType
Check the configured store file type is supporting (ex: JKS, PKCS12).- Throws:
IllegalArgumentException- the File type .CarbonException
-