Class CryptographicConstraintWrapper
java.lang.Object
eu.europa.esig.dss.validation.process.bbb.sav.checks.CryptographicConstraintWrapper
public class CryptographicConstraintWrapper extends Object
The wrapper for a cryptographic information retrieved from a validation policy
-
Constructor Summary
Constructors Constructor Description CryptographicConstraintWrapper(CryptographicConstraint constraint)
Default constructor -
Method Summary
Modifier and Type Method Description CryptographicConstraint
getConstraint()
Gets the constraintDate
getDigestAlgorithmExpirationDate(String digestAlgoToSearch)
Gets an expiration date for the digest algorithm with namedigestAlgoToSearch
Date
getExpirationDate(String algoToSearch, Integer keyLength)
Gets an expiration date for the encryption algorithm with namealgoToSearch
andkeyLength
Map<String,Date>
getExpirationTimes()
Returns a map of all defined algorithm expiration timesMap<String,Integer>
getMinimumKeySizes()
Returns a map of minimum accepted key sizes for different Encryption algorithmsList<String>
getSupportedDigestAlgorithms()
Returns a list of supported Digest algorithm namesList<String>
getSupportedEncryptionAlgorithms()
Returns a list of supported Encryption algorithm names
-
Constructor Details
-
CryptographicConstraintWrapper
Default constructor- Parameters:
constraint
-CryptographicConstraint
-
-
Method Details
-
getSupportedEncryptionAlgorithms
Returns a list of supported Encryption algorithm names- Returns:
- a list of
String
s
-
getSupportedDigestAlgorithms
Returns a list of supported Digest algorithm names- Returns:
- a list of
String
s
-
getMinimumKeySizes
Returns a map of minimum accepted key sizes for different Encryption algorithms- Returns:
- a map of minimum accepted key sizes
-
getExpirationDate
Gets an expiration date for the encryption algorithm with namealgoToSearch
andkeyLength
-
getDigestAlgorithmExpirationDate
Gets an expiration date for the digest algorithm with namedigestAlgoToSearch
-
getExpirationTimes
Returns a map of all defined algorithm expiration times- Returns:
- a map of algorithm names and the corresponding expiration times
-
getConstraint
Gets the constraint- Returns:
CryptographicConstraint
-