org.bouncycastle.asn1.x500.X500Name.getAttributeTypes()方法的使用及代码示例

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

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

X500Name.getAttributeTypes介绍

[英]return an array of OIDs contained in the attribute type of each RDN in structure order.
[中]按结构顺序返回每个RDN的属性类型中包含的OID数组。

代码示例

代码示例来源:origin: de.adorsys.psd2/psd2-validator

private static String getValueFromX500Name(X500Name x500Name, ASN1ObjectIdentifier asn1ObjectIdentifier) {
  boolean exist = ArrayUtils.contains( x500Name.getAttributeTypes(), asn1ObjectIdentifier );
  return  exist ? IETFUtils.valueToString(x500Name.getRDNs(asn1ObjectIdentifier)[0].getFirst().getValue()) : null;
}

代码示例来源:origin: adorsys/xs2a

private static String getValueFromX500Name(X500Name x500Name, ASN1ObjectIdentifier asn1ObjectIdentifier) {
  boolean exist = ArrayUtils.contains( x500Name.getAttributeTypes(), asn1ObjectIdentifier );
  return  exist ? IETFUtils.valueToString(x500Name.getRDNs(asn1ObjectIdentifier)[0].getFirst().getValue()) : null;
}

代码示例来源:origin: org.xipki/security

public static String canonicalizName(X500Name name) {
 Args.notNull(name, "name");
 ASN1ObjectIdentifier[] tmpTypes = name.getAttributeTypes();
 int len = tmpTypes.length;
 List<String> types = new ArrayList<>(len);

代码示例来源:origin: org.xipki.tk/security

public static String canonicalizName(final X500Name name) {
  ParamUtil.requireNonNull("name", name);
  ASN1ObjectIdentifier[] tmpTypes = name.getAttributeTypes();
  int len = tmpTypes.length;
  List<String> types = new ArrayList<>(len);

代码示例来源:origin: org.xipki.pki/ca-qa

for (ASN1ObjectIdentifier oid : subject.getAttributeTypes()) {
  oids.add(oid);

代码示例来源:origin: org.xipki/ca-api

ASN1ObjectIdentifier[] types = requestedSubject.getAttributeTypes();
for (ASN1ObjectIdentifier type : types) {
 RdnControl occu = occurences.getControl(type);

代码示例来源:origin: org.xipki/ca-server

ASN1ObjectIdentifier[] attrTypes = grantedSubject.getAttributeTypes();
if (attrTypes == null || attrTypes.length == 0) {
 throw new OperationException(BAD_CERT_TEMPLATE, "empty subject is not permitted");

相关文章