Class LdapSecurityRealm.LdapSearch
- java.lang.Object
-
- org.wildfly.security.auth.realm.ldap.LdapSecurityRealm.LdapSearch
-
- Enclosing class:
- LdapSecurityRealm
private class LdapSecurityRealm.LdapSearch extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<String>
binaryAttributes
private DirContext
context
private byte[]
cookie
private String
filter
private String[]
filterArgs
private static String
NO_FILTER
private int
pageSize
private ReferralException
referralException
private NamingEnumeration<SearchResult>
result
private Collection<String>
returningAttributes
private String
searchDn
private int
searchScope
-
Constructor Summary
Constructors Constructor Description LdapSearch(String searchDn)
LdapSearch(String searchDn, boolean searchRecursive, int pageSize, String filter, String... filterArgs)
LdapSearch(String searchDn, int searchScope, int pageSize, String filter, String... filterArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SearchControls
createSearchControls()
private DirContext
getContext()
Get context, where the last obtained entry was foundStream<SearchResult>
search(DirContext ctx)
private NamingEnumeration<SearchResult>
searchWithPagination()
private void
setBinaryAttributes(Collection<String> binaryAttributes)
private void
setReturningAttributes(Collection<String> returningAttributes)
-
-
-
Field Detail
-
NO_FILTER
private static final String NO_FILTER
- See Also:
- Constant Field Values
-
searchDn
private final String searchDn
-
searchScope
private final int searchScope
-
pageSize
private final int pageSize
-
filter
private final String filter
-
filterArgs
private final String[] filterArgs
-
returningAttributes
private Collection<String> returningAttributes
-
binaryAttributes
private Collection<String> binaryAttributes
-
context
private DirContext context
-
result
private NamingEnumeration<SearchResult> result
-
cookie
private byte[] cookie
-
referralException
private ReferralException referralException
-
-
Constructor Detail
-
LdapSearch
public LdapSearch(String searchDn, boolean searchRecursive, int pageSize, String filter, String... filterArgs)
-
LdapSearch
public LdapSearch(String searchDn, int searchScope, int pageSize, String filter, String... filterArgs)
-
LdapSearch
public LdapSearch(String searchDn)
-
-
Method Detail
-
search
public Stream<SearchResult> search(DirContext ctx) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
searchWithPagination
private NamingEnumeration<SearchResult> searchWithPagination() throws NamingException, IOException
- Throws:
NamingException
IOException
-
setReturningAttributes
private void setReturningAttributes(Collection<String> returningAttributes)
-
setBinaryAttributes
private void setBinaryAttributes(Collection<String> binaryAttributes)
-
createSearchControls
private SearchControls createSearchControls()
-
getContext
private DirContext getContext()
Get context, where the last obtained entry was found
-
-