Interface CryptoParametersJ8


  • public interface CryptoParametersJ8
    CryptoParameters used for encryption/decryption.
    Author:
    Georg Kallidis
    • Field Detail

      • CLEAR_CODE_DEFAULT

        static final String CLEAR_CODE_DEFAULT
        Prefix to decrypted hex hash to get a clue, what to use and what it is; should be always 10 bytes.
        See Also:
        Constant Field Values
      • LISTS

        static final List[] LISTS
      • PROVIDER_TYPES

        static final String[] PROVIDER_TYPES
    • Method Detail

      • getSupportedAlgos

        static List<String> getSupportedAlgos​(List<String> algoList,
                                              String type,
                                              boolean exact)
        Checks Java provider with type has exact type or contains any of the strings in algoList.
        Types
        may be Cipher, AlgorithmParameters, KeyGenerator, Alg, Mac, SecretKeyFactory.
        Parameters:
        algoList - the types to be checked
        type - the type is ignored if not exact, instead uses the two types: "AlgorithmParameters", "Cipher".
        exact - if exact does a exact match
        Returns:
        the matched results as a list or emtpy list
      • init

        static List<String> init()
        initializes supported parameters by filtering CryptoParametersJ8.TYPES against AlgorithmParameters in system supported cipher suites: first by an exact match with type AlgorithmParameters, then by inexact matching. getSupportedAlgos(List, String, boolean)
        Returns:
        list of supported algo short codes, if nothing is found, the list is empty.