public class RFC1779StrConverter extends LdapV3DNStrConverter
LdapDNStrConverter
,
LdapV3DNStrConverter
acceptUnknownOids, attrMap, hexDigits, octoEndChars, quotedEndChars, specialChars, valueEndChars
Constructor and Description |
---|
RFC1779StrConverter()
Constructs 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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encodeOID(ObjectIdentifier oid)
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.
|
java.lang.String |
encodeValue(DerValue attrValue,
ObjectIdentifier oid)
Converts a attribute value as a DerValue to a string in a
RFC1779 Ldap DN string.
|
encodeAVA, encodeDN, encodeRDN, encodeString, getAcceptUnknownOids, getAttrMap, getStringFromHexpairs, parseAVA, parseAVA, parseAVA, parseAVA, parseAVAKeyword, parseAVAValue, parseAVAValue, parseAVAValue, parseDN, parseDN, parseDN, parseDN, parseRDN, parseRDN, parseRDN, parseRDN
getDefault, setDefault
public RFC1779StrConverter()
public RFC1779StrConverter(X500NameAttrMap attributeMap, boolean doAcceptUnknownOids)
attributeMap
- A X500NameAttrMap to use for this converter.doAcceptUnknownOids
- Accept unregistered attributes, i.e. OIDs
not in the map).public java.lang.String encodeOID(ObjectIdentifier oid) throws java.io.IOException
encodeOID
in class LdapV3DNStrConverter
oid
- an ObjectIdentifier.java.io.IOException
- if an error occurs during the conversion.public java.lang.String encodeValue(DerValue attrValue, ObjectIdentifier oid) throws java.io.IOException
encodeValue
in class LdapV3DNStrConverter
attrValue
- an attribute value.oid
- ObjectIdentifier for the attribute.java.io.IOException
- if an error occurs during the conversion.