Code example for Map

Methods: containsKey, get

0
        // END android-changed 
    } 
 
    static int getKeySize(String algorithm)
    { 
        if (!KEYSIZES.containsKey(algorithm))
        { 
            throw new IllegalStateException("no key size for algorithm: " + algorithm);
        } 
         
        return ((Integer)KEYSIZES.get(algorithm)).intValue();
    } 
 
    static boolean isPKCS5Scheme1(DERObjectIdentifier algOid)
    { 
        return PKCS5_SCHEME_1.contains(algOid);
    } 
 
    static boolean isPKCS5Scheme2(DERObjectIdentifier algOid)
    { 
        return PKCS5_SCHEME_2.contains(algOid);