Package org.eclipse.osgi.signedcontent

Examples of org.eclipse.osgi.signedcontent.SignerInfo


  public boolean equals(Object obj) {
    if (!(obj instanceof SignerInfo))
      return false;
    if (obj == this)
      return true;
    SignerInfo other = (SignerInfo) obj;
    if (!mdAlgorithm.equals(other.getMessageDigestAlgorithm()))
      return false;
    Certificate[] otherCerts = other.getCertificateChain();
    if (otherCerts.length != chain.length)
      return false;
    for (int i = 0; i < chain.length; i++)
      if (!chain[i].equals(otherCerts[i]))
        return false;
    return trustAnchor == null ? other.getTrustAnchor() == null : trustAnchor.equals(other.getTrustAnchor());
  }
View Full Code Here


    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

          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

        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

          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

        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

          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

    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

          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

TOP

Related Classes of org.eclipse.osgi.signedcontent.SignerInfo

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.