All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.LdapDNStrConverter

netscape.security.x509.LdapDNStrConverter

public abstract class LdapDNStrConverter
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.


Constructor Index

 o LdapDNStrConverter()

Method Index

 o encodeAVA(AVA)
Converts an AVA object to a Ldap dn string.
 o encodeDN(X500Name)
Converts a X500Name object to a Ldap dn string.
 o encodeRDN(RDN)
Converts an RDN object to a Ldap dn string.
 o getDefault()
Gets a global default Ldap DN String converter.
 o parseAVA(String)
Converts a Ldap DN string to a AVA object.
 o parseDN(String)
Converts a Ldap DN string to a X500Name object.
 o parseRDN(String)
Converts a Ldap DN string to a RDN object.
 o setDefault(LdapDNStrConverter)
Set the global default LdapDNStrConverter object.

Constructors

 o LdapDNStrConverter
 public LdapDNStrConverter()

Methods

 o parseDN
 public abstract X500Name parseDN(String dn) throws IOException
Converts a Ldap DN string to a X500Name object.

Parameters:
dn - a Ldap DN String.
Returns:
an X500Name object for the Ldap DN String.
 o parseRDN
 public abstract RDN parseRDN(String rdn) throws IOException
Converts a Ldap DN string to a RDN object.

Parameters:
rdn - a Ldap DN String
Returns:
an RDN object.
 o parseAVA
 public abstract AVA parseAVA(String ava) throws IOException
Converts a Ldap DN string to a AVA object.

Parameters:
ava - a Ldap DN string.
Returns:
an AVA object.
 o encodeDN
 public abstract String encodeDN(X500Name dn) throws IOException
Converts a X500Name object to a Ldap dn string.

Parameters:
dn - an X500Name object.
Returns:
a Ldap DN String.
 o encodeRDN
 public abstract String encodeRDN(RDN rdn) throws IOException
Converts an RDN object to a Ldap dn string.

Parameters:
rdn - an RDN object.
Returns:
a Ldap dn string.
 o encodeAVA
 public abstract String encodeAVA(AVA ava) throws IOException
Converts an AVA object to a Ldap dn string.

Parameters:
ava - An AVA object.
Returns:
A Ldap dn string.
 o getDefault
 public static LdapDNStrConverter 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:
LdapV3DNStrConverter
 o setDefault
 public static void setDefault(LdapDNStrConverter defConverter)
Set the global default LdapDNStrConverter object.

Parameters:
defConverter - A LdapDNStrConverter object to become the global default.

All Packages  Class Hierarchy  This Package  Previous  Next  Index