本文整理了Java中java.security.cert.X509CRLSelector
类的一些代码示例,展示了X509CRLSelector
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509CRLSelector
类的具体详情如下:
包路径:java.security.cert.X509CRLSelector
类名称:X509CRLSelector
[英]A CRL selector ( CRLSelector for selecting X509CRLs that match the specified criteria.
When constructed, all criteria are set to default values that will match any X509CRL.
[中]
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
SelectorClone(PKIXCRLStoreSelector selector)
{
this.selector = selector;
if (selector.baseSelector instanceof X509CRLSelector)
{
X509CRLSelector baseSelector = (X509CRLSelector)selector.baseSelector;
this.setCertificateChecking(baseSelector.getCertificateChecking());
this.setDateAndTime(baseSelector.getDateAndTime());
this.setIssuers(baseSelector.getIssuers());
this.setMinCRLNumber(baseSelector.getMinCRL());
this.setMaxCRLNumber(baseSelector.getMaxCRL());
}
}
代码示例来源:origin: eu.eu-emi.security/canl
private Collection<? extends CRL> getCRLs(X509CRLSelector selector)
throws CertStoreException
{
Collection<X500Principal> issuers = selector.getIssuers();
List<X509CRL> ret = new ArrayList<X509CRL>();
if (issuers == null)
return ret;
for (X500Principal issuer: issuers)
{
Collection<X509CRL> crls = getCRLForIssuer(issuer);
for (X509CRL crl: crls)
if (selector.match(crl))
ret.add(crl);
}
return ret;
}
代码示例来源:origin: eu.eu-emi.security/canl
X509CRLSelector crlselect = new X509CRLSelector();
crlselect.setCertificateChecking(cert);
crlselect.addIssuerName(PrincipalUtils.getIssuerPrincipal(crl).getEncoded());
代码示例来源:origin: com.madgag.spongycastle/prov
throws AnnotatedException
X509CRLSelector baseDeltaSelect = new X509CRLSelector();
baseDeltaSelect.addIssuerName(PrincipalUtils.getIssuerPrincipal(completeCRL).getEncoded());
baseDeltaSelect.setMinCRLNumber(completeCRLNumber == null ? null : completeCRLNumber
.add(BigInteger.valueOf(1)));
代码示例来源:origin: eu.eu-emi.security/canl
throws AnnotatedException
X509CRLSelector baseCrlSelect = new X509CRLSelector();
baseCrlSelect.setCertificateChecking((X509Certificate)cert);
代码示例来源:origin: com.madgag.spongycastle/prov
Set set = new HashSet();
if (xselector.getIssuerNames() != null)
for (Iterator it = xselector.getIssuerNames().iterator(); it
.hasNext();)
if (xselector.match(crl))
代码示例来源:origin: com.madgag/scprov-jdk15on
selector.addIssuerName(((X500Principal)it.next()).getEncoded());
代码示例来源:origin: org.ow2.jonas/jonas-security-core
X509CRLSelector x509CRLSelector = new X509CRLSelector();
x509CRLSelector.addIssuerName(this.cert.getIssuerX500Principal().getEncoded());
Iterator crlIterator = crlsStore.getCRLs(x509CRLSelector).iterator();
while (crlIterator.hasNext()) {
代码示例来源:origin: com.madgag.spongycastle/prov
return super.match((X509CRL)obj);
代码示例来源:origin: com.madgag.spongycastle/prov
public X509Certificate getCertificateChecking()
{
if (baseSelector instanceof X509CRLSelector)
{
return ((X509CRLSelector)baseSelector).getCertificateChecking();
}
return null;
}
代码示例来源:origin: luisgoncalves/xades4j
X509CRLSelector crlSelector = new X509CRLSelector();
for (X500Principal issuer : issuersCerts.keySet())
crlSelector.addIssuer(issuer);
crlSelector.setDateAndTime(validationDate);
代码示例来源:origin: com.madgag.spongycastle/prov
X509CRLSelector crlselect = new X509CRLSelector();
crlselect.setCertificateChecking(cert);
crlselect.addIssuerName(PrincipalUtils.getIssuerPrincipal(crl).getEncoded());
代码示例来源:origin: eu.eu-emi.security/canl
throws AnnotatedException
X509CRLSelector baseDeltaSelect = new X509CRLSelector();
baseDeltaSelect.addIssuerName(PrincipalUtils.getIssuerPrincipal(completeCRL).getEncoded());
baseDeltaSelect.setMinCRLNumber(completeCRLNumber == null ? null : completeCRLNumber
.add(BigInteger.valueOf(1)));
代码示例来源:origin: com.madgag.spongycastle/prov
throws AnnotatedException
X509CRLSelector baseCrlSelect = new X509CRLSelector();
baseCrlSelect.setCertificateChecking((X509Certificate)cert);
代码示例来源:origin: com.madgag/scprov-jdk15on
Set set = new HashSet();
if (xselector.getIssuerNames() != null)
for (Iterator it = xselector.getIssuerNames().iterator(); it
.hasNext();)
if (xselector.match(crl))
代码示例来源:origin: ibinti/bugvm
selector.addIssuerName(((X500Principal)it.next()).getEncoded());
代码示例来源:origin: org.objectweb.jonas/jonas-security
X509CRLSelector x509CRLSelector = new X509CRLSelector();
x509CRLSelector.addIssuerName(this.cert.getIssuerX500Principal().getEncoded());
Iterator crlIterator = crlsStore.getCRLs(x509CRLSelector).iterator();
while (crlIterator.hasNext()) {
代码示例来源:origin: com.madgag/scprov-jdk15on
return super.match((X509CRL)obj);
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public X509Certificate getCertificateChecking()
{
if (baseSelector instanceof X509CRLSelector)
{
return ((X509CRLSelector)baseSelector).getCertificateChecking();
}
return null;
}
代码示例来源:origin: com.madgag.spongycastle/prov
SelectorClone(PKIXCRLStoreSelector selector)
{
this.selector = selector;
if (selector.baseSelector instanceof X509CRLSelector)
{
X509CRLSelector baseSelector = (X509CRLSelector)selector.baseSelector;
this.setCertificateChecking(baseSelector.getCertificateChecking());
this.setDateAndTime(baseSelector.getDateAndTime());
this.setIssuers(baseSelector.getIssuers());
this.setMinCRLNumber(baseSelector.getMinCRL());
this.setMaxCRLNumber(baseSelector.getMaxCRL());
}
}
内容来源于网络,如有侵权,请联系作者删除!