本文整理汇总了Java中org.bouncycastle.util.StoreException类的典型用法代码示例。如果您正苦于以下问题:Java StoreException类的具体用法?Java StoreException怎么用?Java StoreException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StoreException类属于org.bouncycastle.util包,在下文中一共展示了StoreException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAuthorityRevocationLists
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns the CRLs for issued certificates for other CAs matching the given
* selector. <br>
* The authorityRevocationList attribute includes revocation information
* regarding certificates issued to other CAs.
*
* @param selector The CRL selector to use to find the CRLs.
* @return A possible empty collection with CRLs
* @throws StoreException
*/
public Collection getAuthorityRevocationLists(X509CRLStoreSelector selector)
throws StoreException
{
String[] attrs = splitString(params.getAuthorityRevocationListAttribute());
String attrNames[] = splitString(params
.getLdapAuthorityRevocationListAttributeName());
String issuerAttributeNames[] = splitString(params
.getAuthorityRevocationListIssuerAttributeName());
List list = cRLIssuerSearch(selector, attrs, attrNames,
issuerAttributeNames);
Set resultSet = createCRLs(list, selector);
if (resultSet.size() == 0)
{
X509CRLStoreSelector emptySelector = new X509CRLStoreSelector();
list = cRLIssuerSearch(emptySelector, attrs, attrNames,
issuerAttributeNames);
resultSet.addAll(createCRLs(list, selector));
}
return resultSet;
}
示例2: getAttributeCertificateRevocationLists
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns the revocation list for revoked attribute certificates.
* <p/>
* The attributeCertificateRevocationList holds a list of attribute
* certificates that have been revoked.
*
* @param selector The CRL selector to use to find the CRLs.
* @return A possible empty collection with CRLs.
* @throws StoreException
*/
public Collection getAttributeCertificateRevocationLists(
X509CRLStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params
.getAttributeCertificateRevocationListAttribute());
String attrNames[] = splitString(params
.getLdapAttributeCertificateRevocationListAttributeName());
String issuerAttributeNames[] = splitString(params
.getAttributeCertificateRevocationListIssuerAttributeName());
List list = cRLIssuerSearch(selector, attrs, attrNames,
issuerAttributeNames);
Set resultSet = createCRLs(list, selector);
if (resultSet.size() == 0)
{
X509CRLStoreSelector emptySelector = new X509CRLStoreSelector();
list = cRLIssuerSearch(emptySelector, attrs, attrNames,
issuerAttributeNames);
resultSet.addAll(createCRLs(list, selector));
}
return resultSet;
}
示例3: getAttributeAuthorityRevocationLists
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns the revocation list for revoked attribute certificates for an
* attribute authority
* <p/>
* The attributeAuthorityList holds a list of AA certificates that have been
* revoked.
*
* @param selector The CRL selector to use to find the CRLs.
* @return A possible empty collection with CRLs
* @throws StoreException
*/
public Collection getAttributeAuthorityRevocationLists(
X509CRLStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params.getAttributeAuthorityRevocationListAttribute());
String attrNames[] = splitString(params
.getLdapAttributeAuthorityRevocationListAttributeName());
String issuerAttributeNames[] = splitString(params
.getAttributeAuthorityRevocationListIssuerAttributeName());
List list = cRLIssuerSearch(selector, attrs, attrNames,
issuerAttributeNames);
Set resultSet = createCRLs(list, selector);
if (resultSet.size() == 0)
{
X509CRLStoreSelector emptySelector = new X509CRLStoreSelector();
list = cRLIssuerSearch(emptySelector, attrs, attrNames,
issuerAttributeNames);
resultSet.addAll(createCRLs(list, selector));
}
return resultSet;
}
示例4: getCrossCertificatePairs
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns cross certificate pairs.
*
* @param selector The selector to use to find the cross certificates.
* @return A possible empty collection with {@link X509CertificatePair}s
* @throws StoreException
*/
public Collection getCrossCertificatePairs(
X509CertPairStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params.getCrossCertificateAttribute());
String attrNames[] = splitString(params.getLdapCrossCertificateAttributeName());
String subjectAttributeNames[] = splitString(params
.getCrossCertificateSubjectAttributeName());
List list = crossCertificatePairSubjectSearch(selector, attrs,
attrNames, subjectAttributeNames);
Set resultSet = createCrossCertificatePairs(list, selector);
if (resultSet.size() == 0)
{
X509CertStoreSelector emptyCertselector = new X509CertStoreSelector();
X509CertPairStoreSelector emptySelector = new X509CertPairStoreSelector();
emptySelector.setForwardSelector(emptyCertselector);
emptySelector.setReverseSelector(emptyCertselector);
list = crossCertificatePairSubjectSearch(emptySelector, attrs,
attrNames, subjectAttributeNames);
resultSet.addAll(createCrossCertificatePairs(list, selector));
}
return resultSet;
}
示例5: getUserCertificates
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns end certificates.
* <p/>
* The attributeDescriptorCertificate is self signed by a source of
* authority and holds a description of the privilege and its delegation
* rules.
*
* @param selector The selector to find the certificates.
* @return A possible empty collection with certificates.
* @throws StoreException
*/
public Collection getUserCertificates(X509CertStoreSelector selector)
throws StoreException
{
String[] attrs = splitString(params.getUserCertificateAttribute());
String attrNames[] = splitString(params.getLdapUserCertificateAttributeName());
String subjectAttributeNames[] = splitString(params
.getUserCertificateSubjectAttributeName());
List list = certSubjectSerialSearch(selector, attrs, attrNames,
subjectAttributeNames);
Set resultSet = createCerts(list, selector);
if (resultSet.size() == 0)
{
X509CertStoreSelector emptySelector = new X509CertStoreSelector();
list = certSubjectSerialSearch(emptySelector, attrs, attrNames,
subjectAttributeNames);
resultSet.addAll(createCerts(list, selector));
}
return resultSet;
}
示例6: getAACertificates
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns attribute certificates for an attribute authority
* <p/>
* The aAcertificate holds the privileges of an attribute authority.
*
* @param selector The selector to find the attribute certificates.
* @return A possible empty collection with attribute certificates.
* @throws StoreException
*/
public Collection getAACertificates(X509AttributeCertStoreSelector selector)
throws StoreException
{
String[] attrs = splitString(params.getAACertificateAttribute());
String attrNames[] = splitString(params.getLdapAACertificateAttributeName());
String subjectAttributeNames[] = splitString(params.getAACertificateSubjectAttributeName());
List list = attrCertSubjectSerialSearch(selector, attrs, attrNames,
subjectAttributeNames);
Set resultSet = createAttributeCertificates(list, selector);
if (resultSet.size() == 0)
{
X509AttributeCertStoreSelector emptySelector = new X509AttributeCertStoreSelector();
list = attrCertSubjectSerialSearch(emptySelector, attrs, attrNames,
subjectAttributeNames);
resultSet.addAll(createAttributeCertificates(list, selector));
}
return resultSet;
}
示例7: getAttributeDescriptorCertificates
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns an attribute certificate for an authority
* <p/>
* The attributeDescriptorCertificate is self signed by a source of
* authority and holds a description of the privilege and its delegation
* rules.
*
* @param selector The selector to find the attribute certificates.
* @return A possible empty collection with attribute certificates.
* @throws StoreException
*/
public Collection getAttributeDescriptorCertificates(
X509AttributeCertStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params.getAttributeDescriptorCertificateAttribute());
String attrNames[] = splitString(params
.getLdapAttributeDescriptorCertificateAttributeName());
String subjectAttributeNames[] = splitString(params
.getAttributeDescriptorCertificateSubjectAttributeName());
List list = attrCertSubjectSerialSearch(selector, attrs, attrNames,
subjectAttributeNames);
Set resultSet = createAttributeCertificates(list, selector);
if (resultSet.size() == 0)
{
X509AttributeCertStoreSelector emptySelector = new X509AttributeCertStoreSelector();
list = attrCertSubjectSerialSearch(emptySelector, attrs, attrNames,
subjectAttributeNames);
resultSet.addAll(createAttributeCertificates(list, selector));
}
return resultSet;
}
示例8: getCACertificates
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns CA certificates.
* <p/>
* The cACertificate attribute of a CA's directory entry shall be used to
* store self-issued certificates (if any) and certificates issued to this
* CA by CAs in the same realm as this CA.
*
* @param selector The selector to find the certificates.
* @return A possible empty collection with certificates.
* @throws StoreException
*/
public Collection getCACertificates(X509CertStoreSelector selector)
throws StoreException
{
String[] attrs = splitString(params.getCACertificateAttribute());
String attrNames[] = splitString(params.getLdapCACertificateAttributeName());
String subjectAttributeNames[] = splitString(params
.getCACertificateSubjectAttributeName());
List list = certSubjectSerialSearch(selector, attrs, attrNames,
subjectAttributeNames);
Set resultSet = createCerts(list, selector);
if (resultSet.size() == 0)
{
X509CertStoreSelector emptySelector = new X509CertStoreSelector();
list = certSubjectSerialSearch(emptySelector, attrs, attrNames,
subjectAttributeNames);
resultSet.addAll(createCerts(list, selector));
}
return resultSet;
}
示例9: getDeltaCertificateRevocationLists
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns the delta revocation list for revoked certificates.
*
* @param selector The CRL selector to use to find the CRLs.
* @return A possible empty collection with CRLs.
* @throws StoreException
*/
public Collection getDeltaCertificateRevocationLists(
X509CRLStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params.getDeltaRevocationListAttribute());
String attrNames[] = splitString(params.getLdapDeltaRevocationListAttributeName());
String issuerAttributeNames[] = splitString(params
.getDeltaRevocationListIssuerAttributeName());
List list = cRLIssuerSearch(selector, attrs, attrNames,
issuerAttributeNames);
Set resultSet = createCRLs(list, selector);
if (resultSet.size() == 0)
{
X509CRLStoreSelector emptySelector = new X509CRLStoreSelector();
list = cRLIssuerSearch(emptySelector, attrs, attrNames,
issuerAttributeNames);
resultSet.addAll(createCRLs(list, selector));
}
return resultSet;
}
示例10: getAttributeCertificateAttributes
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns an attribute certificate for an user.
* <p/>
* The attributeCertificateAttribute holds the privileges of a user
*
* @param selector The selector to find the attribute certificates.
* @return A possible empty collection with attribute certificates.
* @throws StoreException
*/
public Collection getAttributeCertificateAttributes(
X509AttributeCertStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params.getAttributeCertificateAttributeAttribute());
String attrNames[] = splitString(params
.getLdapAttributeCertificateAttributeAttributeName());
String subjectAttributeNames[] = splitString(params
.getAttributeCertificateAttributeSubjectAttributeName());
List list = attrCertSubjectSerialSearch(selector, attrs, attrNames,
subjectAttributeNames);
Set resultSet = createAttributeCertificates(list, selector);
if (resultSet.size() == 0)
{
X509AttributeCertStoreSelector emptySelector = new X509AttributeCertStoreSelector();
list = attrCertSubjectSerialSearch(emptySelector, attrs, attrNames,
subjectAttributeNames);
resultSet.addAll(createAttributeCertificates(list, selector));
}
return resultSet;
}
示例11: getCertificateRevocationLists
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns the certificate revocation lists for revoked certificates.
*
* @param selector The CRL selector to use to find the CRLs.
* @return A possible empty collection with CRLs.
* @throws StoreException
*/
public Collection getCertificateRevocationLists(
X509CRLStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params.getCertificateRevocationListAttribute());
String attrNames[] = splitString(params
.getLdapCertificateRevocationListAttributeName());
String issuerAttributeNames[] = splitString(params
.getCertificateRevocationListIssuerAttributeName());
List list = cRLIssuerSearch(selector, attrs, attrNames,
issuerAttributeNames);
Set resultSet = createCRLs(list, selector);
if (resultSet.size() == 0)
{
X509CRLStoreSelector emptySelector = new X509CRLStoreSelector();
list = cRLIssuerSearch(emptySelector, attrs, attrNames,
issuerAttributeNames);
resultSet.addAll(createCRLs(list, selector));
}
return resultSet;
}
示例12: getSubjectAsString
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
private String getSubjectAsString(X509CertStoreSelector xselector)
{
try
{
byte[] encSubject = xselector.getSubjectAsBytes();
if (encSubject != null)
{
return new X500Principal(encSubject).getName("RFC1779");
}
}
catch (IOException e)
{
throw new StoreException("exception processing name: " + e.getMessage(), e);
}
return null;
}
示例13: getMatches
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Return a collection of entries matching the passed in selector.
*
* @param selector the selector to validate entries against.
* @return a possibly empty collection of matched entries.
* @throws StoreException in case of an underlying issue.
*/
public Collection getMatches(Selector selector)
throws StoreException
{
if (selector == null)
{
return entries.values();
}
List results = new ArrayList();
for (Iterator it = entries.values().iterator(); it.hasNext();)
{
Object next = it.next();
if (selector.match(next))
{
results.add(next);
}
}
return Collections.unmodifiableList(results);
}
示例14: getAttributeCertificateRevocationLists
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns the revocation list for revoked attribute certificates.
* <p>
* The attributeCertificateRevocationList holds a list of attribute
* certificates that have been revoked.
* </p>
* @param selector The CRL selector to use to find the CRLs.
* @return A possible empty collection with CRLs.
* @throws StoreException
*/
public Collection getAttributeCertificateRevocationLists(
X509CRLStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params
.getAttributeCertificateRevocationListAttribute());
String attrNames[] = splitString(params
.getLdapAttributeCertificateRevocationListAttributeName());
String issuerAttributeNames[] = splitString(params
.getAttributeCertificateRevocationListIssuerAttributeName());
List list = cRLIssuerSearch(selector, attrs, attrNames,
issuerAttributeNames);
Set resultSet = createCRLs(list, selector);
if (resultSet.size() == 0)
{
X509CRLStoreSelector emptySelector = new X509CRLStoreSelector();
list = cRLIssuerSearch(emptySelector, attrs, attrNames,
issuerAttributeNames);
resultSet.addAll(createCRLs(list, selector));
}
return resultSet;
}
示例15: getAttributeAuthorityRevocationLists
import org.bouncycastle.util.StoreException; //导入依赖的package包/类
/**
* Returns the revocation list for revoked attribute certificates for an
* attribute authority
* <p>
* The attributeAuthorityList holds a list of AA certificates that have been
* revoked.
* </p>
* @param selector The CRL selector to use to find the CRLs.
* @return A possible empty collection with CRLs
* @throws StoreException
*/
public Collection getAttributeAuthorityRevocationLists(
X509CRLStoreSelector selector) throws StoreException
{
String[] attrs = splitString(params.getAttributeAuthorityRevocationListAttribute());
String attrNames[] = splitString(params
.getLdapAttributeAuthorityRevocationListAttributeName());
String issuerAttributeNames[] = splitString(params
.getAttributeAuthorityRevocationListIssuerAttributeName());
List list = cRLIssuerSearch(selector, attrs, attrNames,
issuerAttributeNames);
Set resultSet = createCRLs(list, selector);
if (resultSet.size() == 0)
{
X509CRLStoreSelector emptySelector = new X509CRLStoreSelector();
list = cRLIssuerSearch(emptySelector, attrs, attrNames,
issuerAttributeNames);
resultSet.addAll(createCRLs(list, selector));
}
return resultSet;
}