Package org.waveprotocol.wave.crypto

Examples of org.waveprotocol.wave.crypto.SignatureException


          try {
            file = new FileInputStream(signerFile);
            ProtocolSignerInfo data = ProtocolSignerInfo.newBuilder().mergeFrom(file).build();
            signerInfo = new SignerInfo(data);
          } catch (SignatureException e) {
            throw new SignatureException("Failed to parse signer info from file: "
                + signerFile.getAbsolutePath(), e);
          } catch (IOException e) {
            throw new SignatureException("Failed to parse signer info from file: "
                + signerFile.getAbsolutePath(), e);
          } finally {
            FileUtils.closeAndIgnoreException(file, signerFile, LOG);
          }
        }
View Full Code Here


        file = new FileOutputStream(signerFile);
        file.write(protoSignerInfo.toByteArray());
        file.flush();
        certPathStore.putSignerInfo(protoSignerInfo);
      } catch (IOException e) {
        throw new SignatureException("Failed to write signer info to file: "
            + signerFile.getAbsolutePath(), e);
      } finally {
        FileUtils.closeAndIgnoreException(file, signerFile, LOG);
      }
    }
View Full Code Here

    }

    List<String> domains = getParticipantDomains(delta.getMessage());

    if (domains.size() != signedDelta.getSignatureCount()) {
      throw new SignatureException("found " + domains.size() + " domains in " +
          "extended address path, but " + signedDelta.getSignatureCount() +
          " signatures.");
    }

    for (int i = 0; i < domains.size(); i++) {
View Full Code Here

          try {
            file = new FileInputStream(signerFile);
            ProtocolSignerInfo data = ProtocolSignerInfo.newBuilder().mergeFrom(file).build();
            signerInfo = new SignerInfo(data);
          } catch (SignatureException e) {
            throw new SignatureException("Failed to parse signer info from file: "
                + signerFile.getAbsolutePath(), e);
          } catch (IOException e) {
            throw new SignatureException("Failed to parse signer info from file: "
                + signerFile.getAbsolutePath(), e);
          } finally {
            FileUtils.closeAndIgnoreException(file, signerFile, LOG);
          }
        }
View Full Code Here

        file = new FileOutputStream(signerFile);
        file.write(protoSignerInfo.toByteArray());
        file.flush();
        certPathStore.putSignerInfo(protoSignerInfo);
      } catch (IOException e) {
        throw new SignatureException("Failed to write signer info to file: "
            + signerFile.getAbsolutePath(), e);
      } finally {
        FileUtils.closeAndIgnoreException(file, signerFile, LOG);
      }
    }
View Full Code Here

    }

    List<String> domains = getParticipantDomains(delta.getMessage());

    if (domains.size() != signedDelta.getSignatureCount()) {
      throw new SignatureException("found " + domains.size() + " domains in " +
          "extended address path, but " + signedDelta.getSignatureCount() +
          " signatures.");
    }

    for (int i = 0; i < domains.size(); i++) {
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.crypto.SignatureException

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.