public boolean isRevoked(Certificate cert){
  if (revokedMap.isEmpty() || (!(cert instanceof X509Certificate))) {
    return false;
  }
  X509Certificate xcert=(X509Certificate)cert;
  X509IssuerSerial issuerSerial=new X509IssuerSerial(xcert);
  return revokedMap.containsKey(issuerSerial);
}

public boolean isRevoked ( Certificate cert ) { if ( revokedMap . isEmpty ( ) || ( ! ( cert instanceof X509Certificate ) ) ) { return false ; } X509Certificate xcert = ( X509Certificate ) cert ; X509IssuerSerial issuerSerial = new X509IssuerSerial ( xcert ) ; return revokedMap . containsKey ( issuerSerial ) ; }
checks whether the given certificate is on this crl .
