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

public static enum KeystoreUtils.StoreFileType extends Enum<KeystoreUtils.StoreFileType>
A collection of file type extensions against the store file type.
  • Enum Constant Details

  • Method Details

    • values

      public static KeystoreUtils.StoreFileType[] 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

      public static KeystoreUtils.StoreFileType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getExtension

      public static String getExtension(KeystoreUtils.StoreFileType tileType)
      Get extension of the store file type (ex: .jks, .p12).
      Throws:
      IllegalArgumentException - the File type .
    • defaultFileType

      public static String defaultFileType()
      If the `Security.TenantKeyStore.Type` is defined, return the type, otherwise return FALLBACK_TENANTED_KEYSTORE_FILE_TYPE.
    • validateFileType

      public static void validateFileType(String fileType) throws CarbonException
      Check the configured store file type is supporting (ex: JKS, PKCS12).
      Throws:
      IllegalArgumentException - the File type .
      CarbonException