use of org.xipki.ca.api.profile.RdnControl in project xipki by xipki.
the class SubjectDnSpec method getRdnControl.
public static RdnControl getRdnControl(ASN1ObjectIdentifier rdnType) {
ParamUtil.requireNonNull("rdnType", rdnType);
RdnControl control = CONTROLS.get(rdnType);
if (control == null) {
// minOccurs = 0, maxOccurs = 9
control = new RdnControl(rdnType, 0, 9);
control.setStringType(StringType.utf8String);
}
return control;
}
Aggregations