Example usage for org.bouncycastle.asn1.x500.style BCStyle STREET

List of usage examples for org.bouncycastle.asn1.x500.style BCStyle STREET

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.x500.style BCStyle STREET.

Prototype

ASN1ObjectIdentifier STREET

To view the source code for org.bouncycastle.asn1.x500.style BCStyle STREET.

Click Source Link

Document

street - StringType(SIZE(1..64))

Usage

From source file:org.apache.nifi.registry.security.util.CertificateUtils.java

License:Apache License

private static Map<ASN1ObjectIdentifier, Integer> createDnOrderMap() {
    Map<ASN1ObjectIdentifier, Integer> orderMap = new HashMap<>();
    int count = 0;
    orderMap.put(BCStyle.CN, count++);/*from www. j  a v  a 2  s . c o  m*/
    orderMap.put(BCStyle.L, count++);
    orderMap.put(BCStyle.ST, count++);
    orderMap.put(BCStyle.O, count++);
    orderMap.put(BCStyle.OU, count++);
    orderMap.put(BCStyle.C, count++);
    orderMap.put(BCStyle.STREET, count++);
    orderMap.put(BCStyle.DC, count++);
    orderMap.put(BCStyle.UID, count++);
    return Collections.unmodifiableMap(orderMap);
}