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; }
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; }
public static String canonicalizName(X500Name name) { Args.notNull(name, "name"); ASN1ObjectIdentifier[] tmpTypes = name.getAttributeTypes(); int len = tmpTypes.length; List<String> types = new ArrayList<>(len);
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);
for (ASN1ObjectIdentifier oid : subject.getAttributeTypes()) { oids.add(oid);
ASN1ObjectIdentifier[] types = requestedSubject.getAttributeTypes(); for (ASN1ObjectIdentifier type : types) { RdnControl occu = occurences.getControl(type);
ASN1ObjectIdentifier[] attrTypes = grantedSubject.getAttributeTypes(); if (attrTypes == null || attrTypes.length == 0) { throw new OperationException(BAD_CERT_TEMPLATE, "empty subject is not permitted");