java.security.cert.X509CRL.getRevokedCertificate()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(168)

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

X509CRL.getRevokedCertificate介绍

[英]Gets the CRL entry, if any, with the given certificate serialNumber.
[中]获取具有给定证书序列号的CRL条目(如果有)。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Returns the CRL entry for the specified certificate.
 *
 * @param certificate
 *            the certificate to search a CRL entry for.
 * @return the entry for the specified certificate, or {@code null} if not
 *         found.
 */
public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
  if (certificate == null) {
    throw new NullPointerException("certificate == null");
  }
  return getRevokedCertificate(certificate.getSerialNumber());
}

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

throws RevokedCertificateException
X509CRLEntry revokedCRLEntry = crl.getRevokedCertificate(cert);
if (revokedCRLEntry != null &&
    revokedCRLEntry.getRevocationDate().compareTo(signDate) <= 0)

代码示例来源:origin: org.jsslutils/jsslutils

@Override
public X509CRLEntry getRevokedCertificate(BigInteger serialNumber) {
  X509CRL crl = this.crl;
  if (crl != null) {
    return crl.getRevokedCertificate(serialNumber);
  } else {
    return null;
  }
}

代码示例来源:origin: MobiVM/robovm

/**
 * Returns the CRL entry for the specified certificate.
 *
 * @param certificate
 *            the certificate to search a CRL entry for.
 * @return the entry for the specified certificate, or {@code null} if not
 *         found.
 */
public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
  if (certificate == null) {
    throw new NullPointerException("certificate == null");
  }
  return getRevokedCertificate(certificate.getSerialNumber());
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the CRL entry for the specified certificate.
 *
 * @param certificate
 *            the certificate to search a CRL entry for.
 * @return the entry for the specified certificate, or {@code null} if not
 *         found.
 */
public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
  if (certificate == null) {
    throw new NullPointerException("certificate == null");
  }
  return getRevokedCertificate(certificate.getSerialNumber());
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Returns the CRL entry for the specified certificate.
 *
 * @param certificate
 *            the certificate to search a CRL entry for.
 * @return the entry for the specified certificate, or {@code null} if not
 *         found.
 */
public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
  if (certificate == null) {
    throw new NullPointerException("certificate == null");
  }
  return getRevokedCertificate(certificate.getSerialNumber());
}

代码示例来源:origin: ibinti/bugvm

/**
 * Returns the CRL entry for the specified certificate.
 *
 * @param certificate
 *            the certificate to search a CRL entry for.
 * @return the entry for the specified certificate, or {@code null} if not
 *         found.
 */
public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
  if (certificate == null) {
    throw new NullPointerException("certificate == null");
  }
  return getRevokedCertificate(certificate.getSerialNumber());
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Returns the CRL entry for the specified certificate.
 *
 * @param certificate
 *            the certificate to search a CRL entry for.
 * @return the entry for the specified certificate, or {@code null} if not
 *         found.
 */
public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
  if (certificate == null) {
    throw new NullPointerException("certificate == null");
  }
  return getRevokedCertificate(certificate.getSerialNumber());
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Returns the CRL entry for the specified certificate.
 *
 * @param certificate
 *            the certificate to search a CRL entry for.
 * @return the entry for the specified certificate, or {@code null} if not
 *         found.
 */
public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
  if (certificate == null) {
    throw new NullPointerException("certificate == null");
  }
  return getRevokedCertificate(certificate.getSerialNumber());
}

代码示例来源:origin: esig/dss

@Override
public X509CRLEntry getRevocationInfo(CRLValidity crlValidity, BigInteger serialNumber) {
  X509CRL crl = getCRL(crlValidity);
  return crl.getRevokedCertificate(serialNumber);
}

代码示例来源:origin: org.apereo.cas/cas-server-support-x509-core

LOGGER.debug("Valid CRLs [{}] found that are not expired yet", crls);
val revokedCrls = crls.stream().map(crl -> crl.getRevokedCertificate(cert)).filter(Objects::nonNull).collect(Collectors.toList());
if (revokedCrls.size() == crls.size()) {
  val entry = revokedCrls.get(0);

代码示例来源:origin: org.jasig.cas/cas-server-support-x509

final X509CRLEntry entry = crl.getRevokedCertificate(cert);
if (entry != null) {
  revokedCrls.add(entry);

代码示例来源:origin: org.apache.pdfbox/pdfbox-examples

throws RevokedCertificateException
X509CRLEntry revokedCRLEntry = crl.getRevokedCertificate(cert);
if (revokedCRLEntry != null &&
    revokedCRLEntry.getRevocationDate().compareTo(signDate) <= 0)

代码示例来源:origin: GluuFederation/oxAuth

X509CRLEntry crlEntry = x509crl.getRevokedCertificate(certificate.getSerialNumber());
if (crlEntry == null) {
  log.debug("CRL status is valid for '" + subjectX500Principal + "'");

代码示例来源:origin: arhs/sd-dss

/**
 * @param certificateToken the {@code CertificateToken} which is managed by this CRL.
 */
private void setRevocationStatus(final CertificateToken certificateToken) {
  final CertificateToken issuerToken = certificateToken.getIssuerToken();
  if (!issuerToken.equals(crlValidity.issuerToken)) {
    if (!crlValidity.signatureIntact) {
      throw new DSSException(crlValidity.signatureInvalidityReason);
    }
    throw new DSSException("The CRLToken is not signed by the same issuer as the CertificateToken to be verified!");
  }
  final BigInteger serialNumber = certificateToken.getSerialNumber();
  final X509CRL x509crl = crlValidity.x509CRL;
  final X509CRLEntry crlEntry = x509crl.getRevokedCertificate(serialNumber);
  status = null == crlEntry;
  if (!status) {
    revocationDate = crlEntry.getRevocationDate();
    final String revocationReason = DSSRevocationUtils.getRevocationReason(crlEntry);
    reason = revocationReason;
  }
}

代码示例来源:origin: ibinti/bugvm

crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));
crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));

代码示例来源:origin: ripple-unmaintained/ripple-lib-java

crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));
crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));

代码示例来源:origin: ripple-unmaintained/ripple-lib-java

crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));
crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));

代码示例来源:origin: eu.eu-emi.security/canl

crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));
crl_entry = crl.getRevokedCertificate(getSerialNumber(cert));

代码示例来源:origin: eu.eu-emi.security/canl

crl_entry = crl.getRevokedCertificate(CertPathValidatorUtilitiesCanl.getSerialNumber(cert));
} else
  crl_entry = crl.getRevokedCertificate(CertPathValidatorUtilitiesCanl.getSerialNumber(cert));

相关文章