public synchronized void engineDeleteEntry(String alias) throws KeyStoreException {
  if (debug != null) {
    debug.println("Removing entry at alias '" + alias + "'");
  }
  Entry entry=entries.get(alias.toLowerCase(Locale.ENGLISH));
  if (entry instanceof PrivateKeyEntry) {
    PrivateKeyEntry keyEntry=(PrivateKeyEntry)entry;
    if (keyEntry.chain != null) {
      certificateCount-=keyEntry.chain.length;
    }
    privateKeyCount--;
  }
 else   if (entry instanceof CertEntry) {
    certificateCount--;
  }
 else   if (entry instanceof SecretKeyEntry) {
    secretKeyCount--;
  }
  entries.remove(alias.toLowerCase(Locale.ENGLISH));
}

public synchronized void engineDeleteEntry ( String alias ) throws KeyStoreException { if ( debug != null ) { debug . println ( "Removing entry at alias '" + alias + "'" ) ; } Entry entry = entries . get ( alias . toLowerCase ( Locale . ENGLISH ) ) ; if ( entry instanceof PrivateKeyEntry ) { PrivateKeyEntry keyEntry = ( PrivateKeyEntry ) entry ; if ( keyEntry . chain != null ) { certificateCount -= keyEntry . chain . length ; } privateKeyCount -- ; } else if ( entry instanceof CertEntry ) { certificateCount -- ; } else if ( entry instanceof SecretKeyEntry ) { secretKeyCount -- ; } entries . remove ( alias . toLowerCase ( Locale . ENGLISH ) ) ; }
deletes the entry identified by the given alias from this keystore .
