}
public void addCertificate(KeyCertificate certificate) {
synchronized(TrustedAuthorities.getInstance()) {
final boolean wasRequired = removeRequiredCertificate(certificate);
final DirectoryServer as = TrustedAuthorities.getInstance().getAuthorityServerByIdentity(certificate.getAuthorityFingerprint());
if(as == null) {
logger.warning("Certificate read for unknown directory authority with identity: "+ certificate.getAuthorityFingerprint());
return;
}
as.addCertificate(certificate);
if(consensusWaitingForCertificates != null && wasRequired) {
switch(consensusWaitingForCertificates.verifySignatures()) {
case STATUS_FAILED: