本文整理了Java中org.bouncycastle.cert.X509AttributeCertificateHolder.getExtension()
方法的一些代码示例,展示了X509AttributeCertificateHolder.getExtension()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509AttributeCertificateHolder.getExtension()
方法的具体详情如下:
包路径:org.bouncycastle.cert.X509AttributeCertificateHolder
类名称:X509AttributeCertificateHolder
方法名:getExtension
暂无
代码示例来源:origin: org.italiangrid/voms-api-java
private boolean checkAuthorityKeyIdentifierExtension(
VOMSAttribute attributes, List<VOMSValidationErrorMessage> validationErrors) {
Extension authKeyId = attributes.getVOMSAC().getExtension(
Extension.authorityKeyIdentifier);
if (authKeyId != null && authKeyId.isCritical()) {
validationErrors.add(newErrorMessage(other,
"AuthorityKeyIdentifier AC extension cannot be critical!"));
return false;
}
return true;
}
代码示例来源:origin: org.italiangrid/voms-api-java
private boolean checkUnhandledCriticalExtensions(VOMSAttribute attributes,
List<VOMSValidationErrorMessage> validationErrors) {
@SuppressWarnings("unchecked")
List<ASN1ObjectIdentifier> acExtensions = attributes.getVOMSAC()
.getExtensionOIDs();
for (ASN1ObjectIdentifier extId : acExtensions) {
if (!VOMSConstants.VOMS_HANDLED_EXTENSIONS.contains(extId)
&& attributes.getVOMSAC().getExtension(extId).isCritical()) {
validationErrors.add(newErrorMessage(other,
"unknown critical extension found in VOMS AC: " + extId.getId()));
return false;
}
}
return true;
}
代码示例来源:origin: org.italiangrid/voms-api-java
private boolean checkNoRevAvailExtension(VOMSAttribute attributes,
List<VOMSValidationErrorMessage> validationErrors) {
Extension noRevAvail = attributes.getVOMSAC().getExtension(
Extension.noRevAvail);
if (noRevAvail != null && noRevAvail.isCritical()) {
validationErrors.add(newErrorMessage(other,
"NoRevAvail AC extension cannot be critical!"));
return false;
}
return true;
}
代码示例来源:origin: org.xipki/security
public static byte[] getCoreExtValue(X509AttributeCertificateHolder cert,
ASN1ObjectIdentifier type) throws CertificateEncodingException {
Args.notNull(cert, "cert");
Args.notNull(type, "type");
Extension ext = cert.getExtension(type);
if (ext == null) {
return null;
}
return ext.getExtnValue().getOctets();
}
代码示例来源:origin: org.xipki.tk/security
public static byte[] getCoreExtValue(final X509AttributeCertificateHolder cert,
final ASN1ObjectIdentifier type) throws CertificateEncodingException {
ParamUtil.requireNonNull("cert", cert);
ParamUtil.requireNonNull("type", type);
Extension ext = cert.getExtension(type);
if (ext == null) {
return null;
}
return ext.getExtnValue().getOctets();
}
代码示例来源:origin: org.italiangrid/voms-api-java
Extension e = ac.getExtension(VOMS_CERTS_OID);
代码示例来源:origin: org.italiangrid/voms-api-java
Extension targetExtension = ac.getExtension(Extension.targetInformation);
代码示例来源:origin: org.italiangrid/voms-api-java
Extension gasExtension = ac.getExtension(VOMS_GENERIC_ATTRS_OID);
内容来源于网络,如有侵权,请联系作者删除!