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