Interface CryptoParametersJ8
-
public interface CryptoParametersJ8
CryptoParameters used for encryption/decryption.- Author:
- Georg Kallidis
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CryptoParametersJ8.TYPES
short names, exact names @seeCryptoParametersJ8.TYPES_IMPL
.static class
CryptoParametersJ8.TYPES_IMPL
Implementing classes are either using PBEWith <digest>And<encryption> - the password-based encryption algorithm defined in PKCS #5: PBEWithHmacSHA256AndAES_256/CBC/PKCS5Padding inCryptoParametersJ8.TYPES_IMPL.ALGORITHM_J8_PBE
or AES/GCM/NoPadding inCryptoParametersJ8.TYPES_IMPL.ALGORITHM_J8_GCM
(Cipher Algorithm Names/Cipher Algorithm Modes/Cipher Algorithm Padding).
-
Field Summary
Fields Modifier and Type Field Description static 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.static CryptoParametersJ8.TYPES
DEFAULT_TYPE
static List[]
LISTS
static String[]
PROVIDER_TYPES
-
Method Summary
Static Methods Modifier and Type Method Description 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.static List<String>
init()
initializes supported parameters by filteringCryptoParametersJ8.TYPES
against AlgorithmParameters in system supported cipher suites: first by an exact match with type AlgorithmParameters, then by inexact matching.
-
-
-
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
-
DEFAULT_TYPE
static final CryptoParametersJ8.TYPES DEFAULT_TYPE
-
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 checkedtype
- 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 filteringCryptoParametersJ8.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.
-
-