org.osgi.framework.Bundle.getSignerCertificates()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中org.osgi.framework.Bundle.getSignerCertificates()方法的一些代码示例,展示了Bundle.getSignerCertificates()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bundle.getSignerCertificates()方法的具体详情如下:
包路径:org.osgi.framework.Bundle
类名称:Bundle
方法名:getSignerCertificates

Bundle.getSignerCertificates介绍

[英]Return the certificates for the signers of this bundle and the certificate chains for those signers.
[中]返回此捆绑包的签名者的证书以及这些签名者的证书链。

代码示例

代码示例来源:origin: org.osgi/org.osgi.core

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.osgi/org.osgi.compendium

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.osgi/org.osgi.core

Bundle matchBundle = bundle != null ? bundle : other.bundle;
String matchPattern = bundle != null ? other.pattern : pattern;
Map<X509Certificate, List<X509Certificate>> signers = matchBundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
for (List<X509Certificate> signerCerts : signers.values()) {
  List<String> dnChain = new ArrayList<String>(signerCerts.size());

代码示例来源:origin: org.osgi/org.osgi.compendium

Bundle matchBundle = bundle != null ? bundle : other.bundle;
String matchPattern = bundle != null ? other.pattern : pattern;
Map<X509Certificate, List<X509Certificate>> signers = matchBundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
for (List<X509Certificate> signerCerts : signers.values()) {
  List<String> dnChain = new ArrayList<String>(signerCerts.size());

代码示例来源:origin: org.osgi/org.osgi.core

throw new IllegalArgumentException("Illegal number of args: " + args.length);
Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
boolean match = false;
for (List<X509Certificate> signerCerts : signers.values()) {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

public Map<X509Certificate, List<X509Certificate>> getSignerCertificates(int signersType) {
  Bundle current = systemBundle;
  if (current != null)
    return current.getSignerCertificates(signersType);
  @SuppressWarnings("unchecked")
  final Map<X509Certificate, List<X509Certificate>> empty = Collections.EMPTY_MAP;
  return empty;
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

public Map<X509Certificate, List<X509Certificate>> getSignerCertificates(int signersType) {
  Bundle current = systemBundle;
  if (current != null)
    return current.getSignerCertificates(signersType);
  @SuppressWarnings("unchecked")
  final Map<X509Certificate, List<X509Certificate>> empty = Collections.EMPTY_MAP;
  return empty;
}

代码示例来源:origin: org.jboss.osgi/jboss-osgi-spi

@SuppressWarnings("rawtypes")
public Map getSignerCertificates(int signersType)
{
 return bundle.getSignerCertificates(signersType);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.osgi/org.osgi.enterprise

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.eclipse/osgi

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.osgi

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.osgi/osgi.cmpn

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: apache/felix

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.osgi

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.coordinator

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.osgi/org.osgi.service.coordinator

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

/**
   * Check if the bundle is signed.
   * 
   * @return true if constructed with a bundle that is signed.
   */
  boolean isBundleSigned() {
    if (bundle == null) {
      return false;
    }
    Map<X509Certificate, List<X509Certificate>> signers = bundle.getSignerCertificates(Bundle.SIGNERS_TRUSTED);
    return !signers.isEmpty();
  }
}

相关文章