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 CryptographicConstraintgetConstraint()Gets the constraintDategetDigestAlgorithmExpirationDate(String digestAlgoToSearch)Gets an expiration date for the digest algorithm with namedigestAlgoToSearchDategetExpirationDate(String algoToSearch, Integer keyLength)Gets an expiration date for the encryption algorithm with namealgoToSearchandkeyLengthMap<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
Strings
-
getSupportedDigestAlgorithms
Returns a list of supported Digest algorithm names- Returns:
- a list of
Strings
-
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 namealgoToSearchandkeyLength -
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
-