Package com.subgraph.orchid

Examples of com.subgraph.orchid.DirectoryServer


   
    boolean certsNeeded = false;
    boolean validSignature = false;
   
    for(DirectorySignature s: authority.getSignatures()) {
      DirectoryServer trusted = TrustedAuthorities.getInstance().getAuthorityServerByIdentity(s.getIdentityDigest());
      if(trusted == null) {
        logger.warning("Consensus signed by unrecognized directory authority: "+ s.getIdentityDigest());
        return SignatureStatus.STATUS_FAILED;
      } else {
        switch(verifySignatureForTrustedAuthority(trusted, s)) {
View Full Code Here


  }
 
  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:
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.DirectoryServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.