Code example for Hashtable

Methods: containsKey, get

0
    static DERObjectIdentifier getAlgorithmOID( 
        String algorithmName)
    { 
        algorithmName = Strings.toUpperCase(algorithmName);
         
        if (algorithms.containsKey(algorithmName))
        { 
            return (DERObjectIdentifier)algorithms.get(algorithmName);
        } 
         
        return new DERObjectIdentifier(algorithmName);
    } 
     
    static AlgorithmIdentifier getSigAlgID( 
        DERObjectIdentifier sigOid,
        String              algorithmName)
    { 
        if (noParams.contains(sigOid))
        { 
            return new AlgorithmIdentifier(sigOid);
        }