Enum EKeyStoreType

    • Enum Constant Detail

      • JKS

        public static final EKeyStoreType JKS
        The default Java Key Store type. Supported by all relevant Java versions since at least 1.5
      • PKCS11

        public static final EKeyStoreType PKCS11
        The PKCS11 key store type is used for secure storage such as Smart Cards and HSM. A key store path is not required (and not supported) for such key store types.
        Since:
        11.0.3
      • PKCS12

        public static final EKeyStoreType PKCS12
        The PKCS12 key store type is slightly better than JKS and is supported only in Java 1.9. In Java 1.8 and earlier this is only supported when BouncyCastle is contained.
      • BCFKS

        public static final EKeyStoreType BCFKS
        The BCFKS key store is designed to be FIPS compliant. It is available in approved-mode operation and is also capable of storing some secret key types in addition to public/private keys and certificates. The BCFKS key store uses PBKDF2 with HMAC SHA512 for password to key conversion and AES CCM for encryption. Passwords are encoded for conversion into keys using PKCS#12 format (as in each 16 bit character is converted into 2 bytes).
    • Method Detail

      • values

        public static EKeyStoreType[] 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 (EKeyStoreType c : EKeyStoreType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EKeyStoreType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getID

        @Nonnull
        @Nonempty
        public String getID()
        Specified by:
        getID in interface com.helger.commons.id.IHasID<String>
      • isKeyStorePathRequired

        public boolean isKeyStorePathRequired()
        Description copied from interface: IKeyStoreType
        Determines, if a key store path is required for loading the key store. Note: the default value is only contained to be backwards compatible.
        Specified by:
        isKeyStorePathRequired in interface IKeyStoreType
        Returns:
        true, if a path must be present