public final class JndiUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Control |
fromJndiRequestControl(LdapApiService codec,
Control jndiControl)
Deprecated.
We don't use JNDI anymore
|
static Control[] |
fromJndiRequestControls(LdapApiService codec,
Control... jndiControls)
Deprecated.
We don't use JNDI anymore
|
static Control |
fromJndiResponseControl(LdapApiService codec,
Control jndiControl)
Deprecated.
We don't use JNDI anymore
|
static Dn |
fromName(Name name)
Convert a
Name to a Dn |
static Control |
toJndiControl(LdapApiService codec,
Control control)
Deprecated.
We don't use JNDI anymore
|
static Control[] |
toJndiControls(LdapApiService codec,
Control... controls)
Deprecated.
We don't use JNDI anymore
|
static Name |
toName(Dn dn)
Convert a Dn to a
Name |
static void |
wrap(Throwable t)
Wraps a LDAP exception into a NaingException
|
@Deprecated public static Control toJndiControl(LdapApiService codec, Control control) throws EncoderException
codec
- The LDAP API service to usecontrol
- The control to convertEncoderException
- If the conversion failed@Deprecated public static Control[] toJndiControls(LdapApiService codec, Control... controls) throws EncoderException
codec
- The LDAP API service to usecontrols
- The controls to convertEncoderException
- If the conversion failed@Deprecated public static Control fromJndiRequestControl(LdapApiService codec, Control jndiControl) throws DecoderException
codec
- The LDAP API service to usejndiControl
- The control to convertDecoderException
- If the conversion failed@Deprecated public static Control fromJndiResponseControl(LdapApiService codec, Control jndiControl) throws DecoderException
codec
- The LDAP API service to usejndiControl
- The control to convertDecoderException
- If the conversion failed@Deprecated public static Control[] fromJndiRequestControls(LdapApiService codec, Control... jndiControls) throws DecoderException
codec
- The LDAP API service to usejndiControls
- The controls to convertDecoderException
- If the conversion failedpublic static void wrap(Throwable t) throws NamingException
t
- The original exceptionNamingException
- The wrapping JNDI exceptionpublic static Name toName(Dn dn)
Name
dn
- The Dn to convertCopyright © 2003–2021 The Apache Software Foundation. All rights reserved.