Examples of SignerInfo


Examples of org.eclipse.osgi.signedcontent.SignerInfo

          os.write(entryResults[i]);
        }
      }

    for (int i = 0; i < signerInfos.length; i++) {
      SignerInfo tsaInfo = signedContent.getTSASignerInfo(signerInfos[i]);
      os.writeBoolean(tsaInfo != null);
      if (tsaInfo == null)
        continue;
      saveSignerInfo(tsaInfo, os);
      Date signingTime = signedContent.getSigningTime(signerInfos[i]);
View Full Code Here

Examples of org.eclipse.osgi.signedcontent.SignerInfo

        SignerInfo[] infos = signedContent.getSignerInfos();
        for (int j = 0; j < infos.length; j++) {
          if (infos[j].getTrustAnchor() == null)
            // one of the signers is not trusted
            unresolved.add(bundles[i]);
          SignerInfo tsa = signedContent.getTSASignerInfo(infos[j]);
          if (tsa != null && tsa.getTrustAnchor() == null)
            // one of the tsa signers is not trusted
            unresolved.add(bundles[i]);
        }
      }
      if (unresolved.contains(bundles[i])) {
View Full Code Here

Examples of org.eclipse.osgi.signedcontent.SignerInfo

          if (anchor.equals(infos[j].getTrustAnchor())) {
            // one of the signers uses this anchor
            untrustedSigners.add(infos[j]);
            usingAnchor.add(bundles[i]);
          }
          SignerInfo tsa = signedContent.getTSASignerInfo(infos[j]);
          if (tsa != null && anchor.equals(tsa.getTrustAnchor())) {
            // one of the tsa signers uses this anchor
            usingAnchor.add(bundles[i]);
            untrustedSigners.add(tsa);
          }
        }
View Full Code Here

Examples of org.eclipse.osgi.signedcontent.SignerInfo

        SignerInfo[] infos = signedContent.getSignerInfos();
        for (int j = 0; j < infos.length; j++) {
          if (infos[j].getTrustAnchor() == null)
            // one of the signers is not trusted
            unresolved.add(bundles[i]);
          SignerInfo tsa = signedContent.getTSASignerInfo(infos[j]);
          if (tsa != null && tsa.getTrustAnchor() == null)
            // one of the tsa signers is not trusted
            unresolved.add(bundles[i]);
        }
      }
      if (unresolved.contains(bundles[i])) {
View Full Code Here

Examples of org.eclipse.osgi.signedcontent.SignerInfo

          if (anchor.equals(infos[j].getTrustAnchor())) {
            // one of the signers uses this anchor
            untrustedSigners.add(infos[j]);
            usingAnchor.add(bundles[i]);
          }
          SignerInfo tsa = signedContent.getTSASignerInfo(infos[j]);
          if (tsa != null && anchor.equals(tsa.getTrustAnchor())) {
            // one of the tsa signers uses this anchor
            usingAnchor.add(bundles[i]);
            untrustedSigners.add(tsa);
          }
        }
View Full Code Here

Examples of org.eclipse.osgi.signedcontent.SignerInfo

    SignedContentImpl result = new SignedContentImpl(signerInfos, contentMDResults);
    for (int i = 0; i < numSigners; i++) {
      boolean hasTSA = is.readBoolean();
      if (!hasTSA)
        continue;
      SignerInfo tsaSigner = readSignerInfo(is);
      Date signingDate = new Date(is.readLong());
      result.addTSASignerInfo(signerInfos[i], tsaSigner, signingDate);
    }
    hook.signedContent = result;
    return hook;
View Full Code Here

Examples of org.eclipse.osgi.signedcontent.SignerInfo

          os.write(entryResults[i]);
        }
      }

    for (int i = 0; i < signerInfos.length; i++) {
      SignerInfo tsaInfo = signedContent.getTSASignerInfo(signerInfos[i]);
      os.writeBoolean(tsaInfo != null);
      if (tsaInfo == null)
        continue;
      saveSignerInfo(tsaInfo, os);
      Date signingTime = signedContent.getSigningTime(signerInfos[i]);
View Full Code Here

Examples of org.waveprotocol.wave.crypto.SignerInfo

  }

  @Override
  public SignerInfo getSignerInfo(byte[] signerId) throws SignatureException {
    synchronized(certPathStore) {
      SignerInfo signerInfo = certPathStore.getSignerInfo(signerId);
      File signerFile = new File(signerIdToFileName(signerId));
      if (signerInfo == null) {
        if (signerFile.exists()) {
          FileInputStream file = null;
          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: "
View Full Code Here

Examples of org.waveprotocol.wave.crypto.SignerInfo

  }

  @Override
  public void putSignerInfo(ProtocolSignerInfo protoSignerInfo) throws SignatureException {
    synchronized(certPathStore) {
      SignerInfo signerInfo = new SignerInfo(protoSignerInfo);
      File signerFile = new File(signerIdToFileName(signerInfo.getSignerId()));
      FileOutputStream file = null;
      try {
        file = new FileOutputStream(signerFile);
        file.write(protoSignerInfo.toByteArray());
        file.flush();
View Full Code Here

Examples of org.waveprotocol.wave.crypto.SignerInfo

    LOG.info("Wave Server configured to host local domains: "
        + certificateManager.getLocalDomains());

    // Preemptively add our own signer info to the certificate manager
    SignerInfo signerInfo = certificateManager.getLocalSigner().getSignerInfo();
    if (signerInfo != null) {
      try {
        certificateManager.storeSignerInfo(signerInfo.toProtoBuf());
      } catch (SignatureException e) {
        LOG.severe("Failed to add our own signer info to the certificate store", e);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.