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 Details

  • Method Details

    • getSupportedEncryptionAlgorithms

      public List<String> getSupportedEncryptionAlgorithms()
      Returns a list of supported Encryption algorithm names
      Returns:
      a list of Strings
    • getSupportedDigestAlgorithms

      public List<String> getSupportedDigestAlgorithms()
      Returns a list of supported Digest algorithm names
      Returns:
      a list of Strings
    • getMinimumKeySizes

      public Map<String,​Integer> getMinimumKeySizes()
      Returns a map of minimum accepted key sizes for different Encryption algorithms
      Returns:
      a map of minimum accepted key sizes
    • getExpirationDate

      public Date getExpirationDate​(String algoToSearch, Integer keyLength)
      Gets an expiration date for the encryption algorithm with name algoToSearch and keyLength
      Parameters:
      algoToSearch - String name of the encryption algorithm
      keyLength - Integer key length used to sign the token
      Returns:
      Date
    • getDigestAlgorithmExpirationDate

      public Date getDigestAlgorithmExpirationDate​(String digestAlgoToSearch)
      Gets an expiration date for the digest algorithm with name digestAlgoToSearch
      Parameters:
      digestAlgoToSearch - String name of the digest algorithm
      Returns:
      Date
    • getExpirationTimes

      public Map<String,​Date> getExpirationTimes()
      Returns a map of all defined algorithm expiration times
      Returns:
      a map of algorithm names and the corresponding expiration times
    • getConstraint

      public CryptographicConstraint getConstraint()
      Gets the constraint
      Returns:
      CryptographicConstraint