1 package org.bouncycastle.cms;
2 
3 import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
4 
5 /**
6  * Finder which is used to look up the algorithm identifiers representing the encryption algorithms that
7  * are associated with a particular signature algorithm.
8  */
9 public interface CMSSignatureEncryptionAlgorithmFinder
10 {
11     /**
12      * Return the encryption algorithm identifier associated with the passed in signatureAlgorithm
13      * @param signatureAlgorithm the algorithm identifier of the signature of interest
14      * @return  the algorithm identifier to be associated with the encryption algorithm used in signature creation.
15      */
findEncryptionAlgorithm(AlgorithmIdentifier signatureAlgorithm)16     AlgorithmIdentifier findEncryptionAlgorithm(AlgorithmIdentifier signatureAlgorithm);
17 }
18