Package de.trustable.ca3s.core.config
Class CryptoConfiguration
- java.lang.Object
-
- de.trustable.ca3s.core.config.CryptoConfiguration
-
@Configuration public class CryptoConfiguration extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoConfigViewgetCryptoConfigView()StringgetDefaultPBEAlgo()booleanisPBEAlgoAllowed(String reqAlgo)
-
-
-
Constructor Detail
-
CryptoConfiguration
public CryptoConfiguration(@Value("${ca3s.pkcs12.pbe.algos:PBEWithHmacSHA256AndAES_256}") String[] validPBEAlgoArr, @Value("${ca3s.catalog.hash.algos:sha-1,sha-256,sha-384,sha-512}") String[] allHashAlgoArr, @Value("${ca3s.catalog.sign.algos:rsa-1024,rsa-2048,rsa-3072,rsa-4096,rsa-8192}") String[] allSignAlgoArr, @Value("${ca3s.pkcs12.secret.description:min6NumberUpperLower}") String regexpPkcs12Description, @Value("${ca3s.pkcs12.secret.regexp:^(?=.*\\d)(?=.*[a-z]).{6,100}$}") String pkcs12SecretRegexp, @Value("${ca3s.ui.password.check.description:min6NumberUpperLower}") String regexpPasswordDescription, @Value("${ca3s.ui.password.check.regexp:^(?=.*\\d)(?=.*[a-z]).{6,100}$}") String passwordRegexp)
-
-
Method Detail
-
getCryptoConfigView
public CryptoConfigView getCryptoConfigView()
-
getDefaultPBEAlgo
public String getDefaultPBEAlgo()
-
isPBEAlgoAllowed
public boolean isPBEAlgoAllowed(String reqAlgo)
-
-