|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.provider.jndi.JndiUtils
public class JndiUtils
Provides methods for converting between JNDI specific objects and ldaptive specific objects.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_IGNORE_CASE
Whether to ignore case when creating basic attributes. |
| Constructor Summary | |
|---|---|
JndiUtils()
Default constructor. |
|
JndiUtils(SortBehavior sb)
Creates a new jndi util. |
|
| Method Summary | |
|---|---|
ModificationItem[] |
fromAttributeModification(AttributeModification[] mods)
Returns jndi modification items using the supplied attribute modifications. |
Attribute |
fromLdapAttribute(LdapAttribute attr)
Returns a jndi attribute that represents the values in the supplied ldap attribute. |
Attributes |
fromLdapAttributes(Collection<LdapAttribute> attrs)
Returns a jndi attributes that represents the values in the supplied ldap attributes. |
SearchResult |
fromSearchEntry(SearchEntry entry)
Returns a jndi search result that represents the supplied search entry. |
static SortKey[] |
fromSortKey(SortKey[] keys)
Returns jndi sort keys using the supplied sort keys. |
protected static int |
getAttributeModification(AttributeModificationType type)
Returns the jndi modification integer constant for the supplied attribute modification type. |
static String |
getAuthenticationType(Mechanism m)
Returns the JNDI authentication string for the supplied authentication type. |
static String |
getQualityOfProtection(QualityOfProtection qop)
Returns the SASL quality of protection string for the supplied enum. |
static String |
getSecurityStrength(SecurityStrength ss)
Returns the SASL security strength string for the supplied enum. |
LdapAttribute |
toLdapAttribute(Attribute attr)
Returns an ldap attribute using the supplied jndi attribute. |
SearchEntry |
toSearchEntry(SearchResult result)
Returns a search entry using the supplied jndi search result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEFAULT_IGNORE_CASE
| Constructor Detail |
|---|
public JndiUtils()
public JndiUtils(SortBehavior sb)
sb - sort behavior| Method Detail |
|---|
public Attribute fromLdapAttribute(LdapAttribute attr)
attr - ldap attribute
public LdapAttribute toLdapAttribute(Attribute attr)
throws NamingException
attr - jndi attribute
NamingException - if the attribute values cannot be readpublic Attributes fromLdapAttributes(Collection<LdapAttribute> attrs)
attrs - ldap attributes
public SearchResult fromSearchEntry(SearchEntry entry)
entry - search entry
public SearchEntry toSearchEntry(SearchResult result)
throws NamingException
result - jndi search result
NamingException - if the search result cannot be readpublic ModificationItem[] fromAttributeModification(AttributeModification[] mods)
mods - attribute modifications
public static SortKey[] fromSortKey(SortKey[] keys)
keys - sort keys
protected static int getAttributeModification(AttributeModificationType type)
type - attribute modification type
public static String getQualityOfProtection(QualityOfProtection qop)
qop - quality of protection enum
public static String getSecurityStrength(SecurityStrength ss)
ss - security strength enum
public static String getAuthenticationType(Mechanism m)
m - sasl mechanism
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||