Code example for Set

Methods: contains

0
     
    static boolean isSameDigest( 
        String digest1,
        String digest2)
    { 
        return (sha1.contains(digest1) && sha1.contains(digest2))
            // BEGIN android-removed 
            // || (sha224.contains(digest1) && sha224.contains(digest2)) 
            // END android-removed 
            || (sha256.contains(digest1) && sha256.contains(digest2))
            || (sha384.contains(digest1) && sha384.contains(digest2))
            || (sha512.contains(digest1) && sha512.contains(digest2))
            || (md5.contains(digest1) && md5.contains(digest2));
    } 
     
    static DERObjectIdentifier getOID( 
        String digestName)
    { 
        return (DERObjectIdentifier)oids.get(digestName);
    } 
}