public class SimpleLDAPAuthenticationManagerImpl extends AbstractAuthenticationManager<SimpleLDAPAuthenticationManagerImpl> implements SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameExceptionSECURED_STRING_VALUEDEFAULT_LDAP_CONTEXT_FACTORY, LDAP_CONTEXT_FACTORY, PROVIDER_AUTH_URL, PROVIDER_TYPE, PROVIDER_URL, SEARCH_CONTEXT, SEARCH_PASSWORD, SEARCH_USERNAME, TRUST_STORECONTEXT, CREATED_BY, CREATED_TIME, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE| Modifier | Constructor and Description |
|---|---|
protected |
SimpleLDAPAuthenticationManagerImpl(Map<String,Object> attributes,
Broker broker) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
authenticate(SaslServer server,
byte[] response)
Authenticates a user using SASL negotiation.
|
AuthenticationResult |
authenticate(String username,
String password)
Authenticates a user using their username and password.
|
SaslServer |
createSaslServer(String mechanism,
String localFQDN,
Principal externalPrincipal)
Creates a SASL server for the specified mechanism name for the given
fully qualified domain name.
|
String |
getLdapContextFactory() |
List<String> |
getMechanisms()
Gets the SASL mechanisms known to this manager.
|
String |
getProviderAuthUrl() |
String |
getProviderUrl() |
String |
getSearchContext() |
String |
getSearchFilter() |
String |
getSearchPassword() |
String |
getSearchUsername() |
TrustStore |
getTrustStore() |
boolean |
isBindWithoutSearch() |
protected void |
onOpen() |
String |
toString() |
protected void |
validateChange(ConfiguredObject<?> proxyForValidation,
Set<String> changedAttributes) |
protected void |
validateOnCreate() |
activate, addChildAsync, doDelete, getBroker, getDisabledMechanisms, getPreferencesProvider, getSecureOnlyMechanisms, getSubjectCreator, getVirtualHostPortBindings, onValidate, recoverUser, setPreferencesProvider, startQuiescedaddChangeListener, applyToChildren, asObjectRecord, attainState, attributeSet, authoriseCreate, authoriseCreateChild, authoriseDelete, authoriseSetAttributes, beforeClose, changeAttribute, changeAttributes, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleted, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getSecurityManager, getState, getStatistics, getTaskExecutor, getType, getTypeClass, handleExceptionOnOpen, isDurable, managesChildStorage, notifyStateChanged, onClose, onCreate, onExceptionInOpen, onResolve, open, openAsync, parentsMap, postResolve, postResolveChildren, registerWithParents, removeChangeListener, rethrowRuntimeExceptionsOnOpen, runTask, setAttribute, setAttributes, setAttributesAsync, setEncrypter, setState, start, startAsync, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDisabledMechanisms, getPreferencesProvider, getSecureOnlyMechanisms, getSubjectCreator, getVirtualHostPortBindings, recoverUser, setPreferencesProvideraddChangeListener, asObjectRecord, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getTaskExecutor, getType, getTypeClass, isDurable, managesChildStorage, open, openAsync, removeChangeListener, setAttribute, setAttributes, setAttributesAsyncgetPreferencesProvider, setPreferencesProviderprotected void validateOnCreate()
validateOnCreate in class AbstractConfiguredObject<SimpleLDAPAuthenticationManagerImpl>protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
validateChange in class AbstractConfiguredObject<SimpleLDAPAuthenticationManagerImpl>protected void onOpen()
onOpen in class AbstractAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public String getProviderUrl()
getProviderUrl in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public String getProviderAuthUrl()
getProviderAuthUrl in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public String getSearchContext()
getSearchContext in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public String getSearchFilter()
getSearchFilter in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public String getLdapContextFactory()
getLdapContextFactory in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public TrustStore getTrustStore()
getTrustStore in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public String getSearchUsername()
getSearchUsername in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public String getSearchPassword()
getSearchPassword in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>public List<String> getMechanisms()
AuthenticationProvidergetMechanisms in interface AuthenticationProvider<SimpleLDAPAuthenticationManagerImpl>public SaslServer createSaslServer(String mechanism, String localFQDN, Principal externalPrincipal) throws SaslException
AuthenticationProvidercreateSaslServer in interface AuthenticationProvider<SimpleLDAPAuthenticationManagerImpl>mechanism - mechanism namelocalFQDN - domain nameexternalPrincipal - externally authenticated PrincipalSaslExceptionpublic AuthenticationResult authenticate(SaslServer server, byte[] response)
AuthenticationProviderauthenticate in interface AuthenticationProvider<SimpleLDAPAuthenticationManagerImpl>server - SASL serverresponse - SASL response to processpublic AuthenticationResult authenticate(String username, String password)
UsernamePasswordAuthenticationProviderauthenticate in interface UsernamePasswordAuthenticationProvider<SimpleLDAPAuthenticationManagerImpl>username - usernamepassword - passwordpublic String toString()
toString in class AbstractConfiguredObject<SimpleLDAPAuthenticationManagerImpl>public boolean isBindWithoutSearch()
isBindWithoutSearch in interface SimpleLDAPAuthenticationManager<SimpleLDAPAuthenticationManagerImpl>Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.