fixed lookup for SN to RFC4519.
/**
* device serial number name - StringType(SIZE(1..64))
+ * @deprecated use SERIALNUMBER or SURNAME
*/
public static final ASN1ObjectIdentifier SN = new ASN1ObjectIdentifier("2.5.4.5").intern();
/**
* device serial number name - StringType(SIZE(1..64))
*/
- public static final ASN1ObjectIdentifier SERIALNUMBER = SN;
+ public static final ASN1ObjectIdentifier SERIALNUMBER = new ASN1ObjectIdentifier("2.5.4.5").intern();
/**
* locality name - StringType(SIZE(1..64))
DefaultSymbols.put(CN, "CN");
DefaultSymbols.put(L, "L");
DefaultSymbols.put(ST, "ST");
- DefaultSymbols.put(SN, "SERIALNUMBER");
+ DefaultSymbols.put(SERIALNUMBER, "SERIALNUMBER");
DefaultSymbols.put(EmailAddress, "E");
DefaultSymbols.put(DC, "DC");
DefaultSymbols.put(UID, "UID");
DefaultLookUp.put("cn", CN);
DefaultLookUp.put("l", L);
DefaultLookUp.put("st", ST);
- DefaultLookUp.put("sn", SN);
- DefaultLookUp.put("serialnumber", SN);
+ DefaultLookUp.put("sn", SURNAME);
+ DefaultLookUp.put("serialnumber", SERIALNUMBER);
DefaultLookUp.put("street", STREET);
DefaultLookUp.put("emailaddress", E);
DefaultLookUp.put("dc", DC);
@@ -343,6 +344,4 @@ public String toString(X500Name name)
return buf.toString();
}
-
-
}
