Class RFC1779StrConverter
java.lang.Object
org.mozilla.jss.netscape.security.x509.LdapDNStrConverter
org.mozilla.jss.netscape.security.x509.LdapV3DNStrConverter
org.mozilla.jss.netscape.security.x509.RFC1779StrConverter
Converts a RFC 1779 string to a X500Name, RDN or AVA object and vice versa.
- See Also:
-
Field Summary
Fields inherited from class LdapV3DNStrConverter
acceptUnknownOids, attrMap, hexDigits, octoEndChars, quotedEndChars, specialChars, valueEndChars -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a RFC1779StrConverter using the global default X500NameAttrMap and accepts OIDs not listed in the attribute map.RFC1779StrConverter(X500NameAttrMap attributeMap, boolean doAcceptUnknownOids) Constructs a RFC1779StrConverter using the specified X500NameAttrMap and boolean for whether to accept OIDs not in the X500NameAttrMap. -
Method Summary
Modifier and TypeMethodDescriptionConverts a OID to a attribute keyword in a Ldap DN string or to a "OID.1.2.3.4" string syntax as defined in RFC1779.encodeValue(DerValue attrValue, ObjectIdentifier oid) Converts a attribute value as a DerValue to a string in a RFC1779 Ldap DN string.Methods inherited from class LdapV3DNStrConverter
encodeAVA, encodeDN, encodeRDN, encodeString, getAcceptUnknownOids, getAttrMap, getStringFromHexpairs, parseAVA, parseAVA, parseAVA, parseAVA, parseAVAKeyword, parseAVAValue, parseAVAValue, parseAVAValue, parseDN, parseDN, parseDN, parseDN, parseRDN, parseRDN, parseRDN, parseRDNMethods inherited from class LdapDNStrConverter
getDefault, setDefault
-
Constructor Details
-
RFC1779StrConverter
public RFC1779StrConverter()Constructs a RFC1779StrConverter using the global default X500NameAttrMap and accepts OIDs not listed in the attribute map. -
RFC1779StrConverter
Constructs a RFC1779StrConverter using the specified X500NameAttrMap and boolean for whether to accept OIDs not in the X500NameAttrMap.- Parameters:
attributeMap- A X500NameAttrMap to use for this converter.doAcceptUnknownOids- Accept unregistered attributes, i.e. OIDs not in the map).
-
-
Method Details
-
encodeOID
Converts a OID to a attribute keyword in a Ldap DN string or to a "OID.1.2.3.4" string syntax as defined in RFC1779.- Overrides:
encodeOIDin classLdapV3DNStrConverter- Parameters:
oid- an ObjectIdentifier.- Returns:
- a attribute keyword or "OID.1.2.3.4" string.
- Throws:
IOException- if an error occurs during the conversion.
-
encodeValue
Converts a attribute value as a DerValue to a string in a RFC1779 Ldap DN string.- Overrides:
encodeValuein classLdapV3DNStrConverter- Parameters:
attrValue- an attribute value.oid- ObjectIdentifier for the attribute.- Returns:
- a string in RFC1779 syntax.
- Throws:
IOException- if an error occurs during the conversion.
-