Class LdapSecurityRealm.LdapSearch
- java.lang.Object
- 
- org.wildfly.security.auth.realm.ldap.LdapSecurityRealm.LdapSearch
 
- 
- Enclosing class:
- LdapSecurityRealm
 
 private class LdapSecurityRealm.LdapSearch extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description private Collection<String>binaryAttributesprivate DirContextcontextprivate byte[]cookieprivate Stringfilterprivate String[]filterArgsprivate StringNO_FILTERprivate intpageSizeprivate ReferralExceptionreferralExceptionprivate NamingEnumeration<SearchResult>resultprivate Collection<String>returningAttributesprivate StringsearchDnprivate intsearchScope
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description private SearchControlscreateSearchControls()private DirContextgetContext()Get context, where the last obtained entry was foundStream<SearchResult>search(DirContext ctx)private NamingEnumeration<SearchResult>searchWithPagination()private voidsetBinaryAttributes(Collection<String> binaryAttributes)private voidsetReturningAttributes(Collection<String> returningAttributes)
 
- 
- 
- 
Field Detail- 
NO_FILTERprivate final String NO_FILTER - See Also:
- Constant Field Values
 
 - 
searchDnprivate final String searchDn 
 - 
searchScopeprivate final int searchScope 
 - 
pageSizeprivate final int pageSize 
 - 
filterprivate final String filter 
 - 
filterArgsprivate final String[] filterArgs 
 - 
returningAttributesprivate Collection<String> returningAttributes 
 - 
binaryAttributesprivate Collection<String> binaryAttributes 
 - 
contextprivate DirContext context 
 - 
resultprivate NamingEnumeration<SearchResult> result 
 - 
cookieprivate byte[] cookie 
 - 
referralExceptionprivate ReferralException referralException 
 
- 
 - 
Constructor Detail- 
LdapSearchpublic LdapSearch(String searchDn, boolean searchRecursive, int pageSize, String filter, String... filterArgs) 
 - 
LdapSearchpublic LdapSearch(String searchDn, int searchScope, int pageSize, String filter, String... filterArgs) 
 - 
LdapSearchpublic LdapSearch(String searchDn) 
 
- 
 - 
Method Detail- 
searchpublic Stream<SearchResult> search(DirContext ctx) throws RealmUnavailableException - Throws:
- RealmUnavailableException
 
 - 
searchWithPaginationprivate NamingEnumeration<SearchResult> searchWithPagination() throws NamingException, IOException - Throws:
- NamingException
- IOException
 
 - 
setReturningAttributesprivate void setReturningAttributes(Collection<String> returningAttributes) 
 - 
setBinaryAttributesprivate void setBinaryAttributes(Collection<String> binaryAttributes) 
 - 
createSearchControlsprivate SearchControls createSearchControls() 
 - 
getContextprivate DirContext getContext() Get context, where the last obtained entry was found
 
- 
 
-