Search in sources :

Example 6 with RdnControl

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;
}
Also used : RdnControl(org.xipki.ca.api.profile.RdnControl)

Aggregations

RdnControl (org.xipki.ca.api.profile.RdnControl)6 LinkedList (java.util.LinkedList)4 RDN (org.bouncycastle.asn1.x500.RDN)4 ASN1ObjectIdentifier (org.bouncycastle.asn1.ASN1ObjectIdentifier)3 DERIA5String (org.bouncycastle.asn1.DERIA5String)3 DERPrintableString (org.bouncycastle.asn1.DERPrintableString)3 DERUTF8String (org.bouncycastle.asn1.DERUTF8String)3 AttributeTypeAndValue (org.bouncycastle.asn1.x500.AttributeTypeAndValue)3 StringType (org.xipki.ca.api.profile.StringType)3 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 DERBMPString (org.bouncycastle.asn1.DERBMPString)2 DERT61String (org.bouncycastle.asn1.DERT61String)2 BadCertTemplateException (org.xipki.ca.api.BadCertTemplateException)2 ValidationIssue (org.xipki.common.qa.ValidationIssue)2 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Pattern (java.util.regex.Pattern)1 ASN1Encodable (org.bouncycastle.asn1.ASN1Encodable)1