1e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrompackage org.bouncycastle.cms; 2e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom 3e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstromimport org.bouncycastle.asn1.x509.AlgorithmIdentifier; 4e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom 5e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrompublic interface CMSSignatureAlgorithmNameGenerator 6e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom{ 7e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom /** 8e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom * Return the digest algorithm using one of the standard string 9e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom * representations rather than the algorithm object identifier (if possible). 10e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom * 11e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom * @param digestAlg the digest algorithm id. 12e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom * @param encryptionAlg the encryption, or signing, algorithm id. 13e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom */ 14e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom String getSignatureName(AlgorithmIdentifier digestAlg, AlgorithmIdentifier encryptionAlg); 15e6bf3e8dfa2804891a82075cb469b736321b4827Brian Carlstrom} 16