Class LDAPOptions
- java.lang.Object
-
- org.apache.karaf.jaas.modules.ldap.LDAPOptions
-
public class LDAPOptions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringALLOW_EMPTY_PASSWORDSstatic StringAUTHENTICATIONstatic StringCONNECTION_PASSWORDstatic StringCONNECTION_URLstatic StringCONNECTION_USERNAMEstatic StringCONTEXT_PREFIXstatic StringDEFAULT_AUTHENTICATIONstatic StringDEFAULT_INITIAL_CONTEXT_FACTORYstatic intDEFAULT_SSL_TIMEOUTstatic StringDISABLE_CACHEstatic StringIGNORE_PARTIAL_RESULT_EXCEPTIONstatic StringINITIAL_CONTEXT_FACTORYstatic StringROLE_BASE_DNstatic StringROLE_FILTERstatic StringROLE_MAPPINGstatic StringROLE_NAME_ATTRIBUTEstatic StringROLE_SEARCH_SUBTREEstatic StringSSLstatic StringSSL_ALGORITHMstatic StringSSL_KEYALIASstatic StringSSL_KEYSTOREstatic StringSSL_PROTOCOLstatic StringSSL_PROVIDERstatic StringSSL_TIMEOUTstatic StringSSL_TRUSTSTOREstatic StringUSER_BASE_DNstatic StringUSER_FILTERstatic StringUSER_PUBKEY_ATTRIBUTEstatic StringUSER_SEARCH_SUBTREEstatic StringUSERNAMES_TRIM
-
Constructor Summary
Constructors Constructor Description LDAPOptions(Map<String,?> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)booleangetAllowEmptyPasswords()StringgetAuthentication()StringgetConnectionPassword()StringgetConnectionURL()StringgetConnectionUsername()booleangetDisableCache()Hashtable<String,Object>getEnv()booleangetIgnorePartialResultException()ObjectgetInitialContextFactory()StringgetRoleBaseDn()StringgetRoleFilter()Map<String,Set<String>>getRoleMapping()StringgetRoleNameAttribute()booleangetRoleSearchSubtree()booleangetSsl()StringgetSslAlgorithm()StringgetSslKeyAlias()StringgetSslKeystore()StringgetSslProtocol()StringgetSslProvider()intgetSslTimeout()StringgetSslTrustStore()StringgetUserBaseDn()StringgetUserFilter()StringgetUserPubkeyAttribute()booleangetUserSearchSubtree()inthashCode()booleanisUsernameTrim()protected voidsetupSsl(Hashtable<String,Object> env)
-
-
-
Field Detail
-
CONNECTION_URL
public static final String CONNECTION_URL
- See Also:
- Constant Field Values
-
CONNECTION_USERNAME
public static final String CONNECTION_USERNAME
- See Also:
- Constant Field Values
-
CONNECTION_PASSWORD
public static final String CONNECTION_PASSWORD
- See Also:
- Constant Field Values
-
USER_BASE_DN
public static final String USER_BASE_DN
- See Also:
- Constant Field Values
-
USER_FILTER
public static final String USER_FILTER
- See Also:
- Constant Field Values
-
USER_SEARCH_SUBTREE
public static final String USER_SEARCH_SUBTREE
- See Also:
- Constant Field Values
-
USER_PUBKEY_ATTRIBUTE
public static final String USER_PUBKEY_ATTRIBUTE
- See Also:
- Constant Field Values
-
ROLE_BASE_DN
public static final String ROLE_BASE_DN
- See Also:
- Constant Field Values
-
ROLE_FILTER
public static final String ROLE_FILTER
- See Also:
- Constant Field Values
-
ROLE_NAME_ATTRIBUTE
public static final String ROLE_NAME_ATTRIBUTE
- See Also:
- Constant Field Values
-
ROLE_SEARCH_SUBTREE
public static final String ROLE_SEARCH_SUBTREE
- See Also:
- Constant Field Values
-
ROLE_MAPPING
public static final String ROLE_MAPPING
- See Also:
- Constant Field Values
-
AUTHENTICATION
public static final String AUTHENTICATION
- See Also:
- Constant Field Values
-
ALLOW_EMPTY_PASSWORDS
public static final String ALLOW_EMPTY_PASSWORDS
- See Also:
- Constant Field Values
-
DISABLE_CACHE
public static final String DISABLE_CACHE
- See Also:
- Constant Field Values
-
INITIAL_CONTEXT_FACTORY
public static final String INITIAL_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
CONTEXT_PREFIX
public static final String CONTEXT_PREFIX
- See Also:
- Constant Field Values
-
SSL
public static final String SSL
- See Also:
- Constant Field Values
-
SSL_PROVIDER
public static final String SSL_PROVIDER
- See Also:
- Constant Field Values
-
SSL_PROTOCOL
public static final String SSL_PROTOCOL
- See Also:
- Constant Field Values
-
SSL_ALGORITHM
public static final String SSL_ALGORITHM
- See Also:
- Constant Field Values
-
SSL_KEYSTORE
public static final String SSL_KEYSTORE
- See Also:
- Constant Field Values
-
SSL_KEYALIAS
public static final String SSL_KEYALIAS
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE
public static final String SSL_TRUSTSTORE
- See Also:
- Constant Field Values
-
SSL_TIMEOUT
public static final String SSL_TIMEOUT
- See Also:
- Constant Field Values
-
USERNAMES_TRIM
public static final String USERNAMES_TRIM
- See Also:
- Constant Field Values
-
DEFAULT_INITIAL_CONTEXT_FACTORY
public static final String DEFAULT_INITIAL_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
DEFAULT_AUTHENTICATION
public static final String DEFAULT_AUTHENTICATION
- See Also:
- Constant Field Values
-
IGNORE_PARTIAL_RESULT_EXCEPTION
public static final String IGNORE_PARTIAL_RESULT_EXCEPTION
- See Also:
- Constant Field Values
-
DEFAULT_SSL_TIMEOUT
public static final int DEFAULT_SSL_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isUsernameTrim
public boolean isUsernameTrim()
-
getUserFilter
public String getUserFilter()
-
getUserBaseDn
public String getUserBaseDn()
-
getUserSearchSubtree
public boolean getUserSearchSubtree()
-
getUserPubkeyAttribute
public String getUserPubkeyAttribute()
-
getRoleFilter
public String getRoleFilter()
-
getRoleBaseDn
public String getRoleBaseDn()
-
getRoleSearchSubtree
public boolean getRoleSearchSubtree()
-
getRoleNameAttribute
public String getRoleNameAttribute()
-
getEnv
public Hashtable<String,Object> getEnv() throws NamingException
- Throws:
NamingException
-
setupSsl
protected void setupSsl(Hashtable<String,Object> env) throws NamingException
- Throws:
NamingException
-
getInitialContextFactory
public Object getInitialContextFactory()
-
getConnectionURL
public String getConnectionURL()
-
getConnectionUsername
public String getConnectionUsername()
-
getConnectionPassword
public String getConnectionPassword()
-
getAuthentication
public String getAuthentication()
-
getSsl
public boolean getSsl()
-
getSslProvider
public String getSslProvider()
-
getSslProtocol
public String getSslProtocol()
-
getSslAlgorithm
public String getSslAlgorithm()
-
getSslKeystore
public String getSslKeystore()
-
getSslKeyAlias
public String getSslKeyAlias()
-
getSslTrustStore
public String getSslTrustStore()
-
getSslTimeout
public int getSslTimeout()
-
getAllowEmptyPasswords
public boolean getAllowEmptyPasswords()
-
getDisableCache
public boolean getDisableCache()
-
getIgnorePartialResultException
public boolean getIgnorePartialResultException()
-
-