Code example for Hashtable

Methods: put

0
 */ 
public class KeyAgreement 
    extends KeyAgreementSpi
{ 
    private static final X9IntegerConverter converter = new X9IntegerConverter();
    private static final Hashtable algorithms = new Hashtable();
 
    static 
    { 
        // BEGIN android-changed 
        Integer i128 = Integer.valueOf(128);
        Integer i192 = Integer.valueOf(192);
        Integer i256 = Integer.valueOf(256);
        // END android-changed 
 
        algorithms.put(NISTObjectIdentifiers.id_aes128_CBC.getId(), i128);
        algorithms.put(NISTObjectIdentifiers.id_aes192_CBC.getId(), i192);
        algorithms.put(NISTObjectIdentifiers.id_aes256_CBC.getId(), i256);
        algorithms.put(NISTObjectIdentifiers.id_aes128_wrap.getId(), i128);
        algorithms.put(NISTObjectIdentifiers.id_aes192_wrap.getId(), i192);
        algorithms.put(NISTObjectIdentifiers.id_aes256_wrap.getId(), i256);
        algorithms.put(PKCSObjectIdentifiers.id_alg_CMS3DESwrap.getId(), i192);
    } 
 
    private String                 kaAlgorithm;
    private BigInteger             result;
    private ECDomainParameters     parameters;