Class LdapDNStrConverter
java.lang.Object
org.mozilla.jss.netscape.security.x509.LdapDNStrConverter
- Direct Known Subclasses:
LdapV3DNStrConverter
Abstract class that converts a Ldap DN String to an X500Name, RDN or AVA
and vice versa, except the string is a java string in unicode.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Converts an AVA object to a Ldap dn string.abstract String
Converts a X500Name object to a Ldap dn string.abstract String
Converts an RDN object to a Ldap dn string.static LdapDNStrConverter
Gets a global default Ldap DN String converter.abstract AVA
Converts a Ldap DN string to a AVA object.abstract AVA
Like parseAVA with a specified DER encoding order for Directory Strings.abstract X500Name
Converts a Ldap DN string to a X500Name object.abstract X500Name
Like parseDN with a specified DER encoding order for Directory Strings.abstract RDN
Converts a Ldap DN string to a RDN object.abstract RDN
Like parseRDN with a specified DER encoding order for Directory Strings.static void
setDefault
(LdapDNStrConverter defConverter) Set the global default LdapDNStrConverter object.
-
Field Details
-
defaultConverter
-
-
Constructor Details
-
LdapDNStrConverter
public LdapDNStrConverter()
-
-
Method Details
-
parseDN
Converts a Ldap DN string to a X500Name object.- Parameters:
dn
- a Ldap DN String.- Returns:
- an X500Name object for the Ldap DN String.
- Throws:
IOException
-
parseDN
Like parseDN with a specified DER encoding order for Directory Strings.- Throws:
IOException
-
parseRDN
Converts a Ldap DN string to a RDN object.- Parameters:
rdn
- a Ldap DN String- Returns:
- an RDN object.
- Throws:
IOException
-
parseRDN
Like parseRDN with a specified DER encoding order for Directory Strings.- Throws:
IOException
-
parseAVA
Converts a Ldap DN string to a AVA object.- Parameters:
ava
- a Ldap DN string.- Returns:
- an AVA object.
- Throws:
IOException
-
parseAVA
Like parseAVA with a specified DER encoding order for Directory Strings.- Throws:
IOException
-
encodeDN
Converts a X500Name object to a Ldap dn string.- Parameters:
dn
- an X500Name object.- Returns:
- a Ldap DN String.
- Throws:
IOException
-
encodeRDN
Converts an RDN object to a Ldap dn string.- Parameters:
rdn
- an RDN object.- Returns:
- a Ldap dn string.
- Throws:
IOException
-
encodeAVA
Converts an AVA object to a Ldap dn string.- Parameters:
ava
- An AVA object.- Returns:
- A Ldap dn string.
- Throws:
IOException
-
getDefault
Gets a global default Ldap DN String converter. Currently it is LdapV3DNStrConverter object using the default X500NameAttrMap and accepts unknown OIDs.- Returns:
- The global default LdapDNStrConverter instance.
- See Also:
-
setDefault
Set the global default LdapDNStrConverter object.- Parameters:
defConverter
- A LdapDNStrConverter object to become the global default.
-