public class AuthenticationInterceptor extends BaseInterceptor
Interceptor
that authenticates users.directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager
Constructor and Description |
---|
AuthenticationInterceptor()
Creates an authentication service interceptor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AddOperationContext addContext)
Filters
Partition#add( AddOperationContext ) call. |
void |
bind(BindOperationContext bindContext)
Filters
Partition#bind( BindOperationContext ) call. |
boolean |
compare(CompareOperationContext compareContext)
Filters
DefaultPartitionNexus#compare( CompareOperationContext ) call. |
void |
delete(DeleteOperationContext deleteContext)
Filters
Partition#delete( DeleteOperationContext ) call. |
void |
destroy()
Deinitializes and deregisters all
Authenticator s from this service. |
Set<Authenticator> |
getAuthenticators() |
PasswordPolicyConfiguration |
getPwdPolicy(org.apache.directory.api.ldap.model.entry.Entry userEntry)
Gets the effective password policy of the given entry.
|
PpolicyConfigContainer |
getPwdPolicyContainer() |
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse(GetRootDseOperationContext getRootDseContext)
Filters
DefaultPartitionNexus#getRootDse( GetRootDseOperationContext ) call. |
boolean |
hasEntry(HasEntryOperationContext hasEntryContext)
Filters
Partition#hasEntry( HasEntryOperationContext ) call. |
void |
init(DirectoryService directoryService)
Registers and initializes all
Authenticator s to this service. |
boolean |
isPwdPolicyEnabled() |
void |
loadPwdPolicyStateAttributeTypes()
Initialize the PasswordPolicy attributeTypes
|
org.apache.directory.api.ldap.model.entry.Entry |
lookup(LookupOperationContext lookupContext)
Filters
Partition#lookup( LookupOperationContext ) call. |
void |
modify(ModifyOperationContext modifyContext)
Filters
Partition#modify( ModifyOperationContext ) call. |
void |
move(MoveOperationContext moveContext)
Filters
Partition#move( MoveOperationContext ) call. |
void |
moveAndRename(MoveAndRenameOperationContext moveAndRenameContext)
Filters
Partition#moveAndRename( MoveAndRenameOperationContext) call. |
void |
rename(RenameOperationContext renameContext)
Filters
Partition#rename( RenameOperationContext ) call. |
EntryFilteringCursor |
search(SearchOperationContext searchContext)
Filters
Partition#search( SearchOperationContext ) call. |
void |
setAuthenticators(Authenticator[] authenticators) |
void |
setAuthenticators(Set<Authenticator> authenticators) |
void |
setPwdPolicies(PpolicyConfigContainer policyContainer)
set all the password policies to be used by the server.
|
void |
setPwdPolicyContainer(PpolicyConfigContainer pwdPolicyContainer) |
void |
unbind(UnbindOperationContext unbindContext)
Filters
Partition#unbind( UnbindOperationContext ) call. |
public AuthenticationInterceptor()
public void init(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
Authenticator
s to this service.init
in interface Interceptor
init
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public Set<Authenticator> getAuthenticators()
public void setAuthenticators(Set<Authenticator> authenticators)
authenticators
- authenticators to be used by this AuthenticationInterceptorpublic void setAuthenticators(Authenticator[] authenticators)
authenticators
- authenticators to be used by this AuthenticationInterceptorpublic void destroy()
Authenticator
s from this service.destroy
in interface Interceptor
destroy
in class BaseInterceptor
public void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#add( AddOperationContext )
call.add
in interface Interceptor
add
in class BaseInterceptor
addContext
- The AddOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Add operationpublic void bind(BindOperationContext bindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#bind( BindOperationContext )
call.bind
in interface Interceptor
bind
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public boolean compare(CompareOperationContext compareContext) throws org.apache.directory.api.ldap.model.exception.LdapException
DefaultPartitionNexus#compare( CompareOperationContext )
call.compare
in interface Interceptor
compare
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public void delete(DeleteOperationContext deleteContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#delete( DeleteOperationContext )
call.delete
in interface Interceptor
delete
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.entry.Entry getRootDse(GetRootDseOperationContext getRootDseContext) throws org.apache.directory.api.ldap.model.exception.LdapException
DefaultPartitionNexus#getRootDse( GetRootDseOperationContext )
call.getRootDse
in interface Interceptor
getRootDse
in class BaseInterceptor
getRootDseContext
- The getRoot() operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If we can't get back the RootDSE entrypublic boolean hasEntry(HasEntryOperationContext hasEntryContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#hasEntry( HasEntryOperationContext )
call.hasEntry
in interface Interceptor
hasEntry
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.entry.Entry lookup(LookupOperationContext lookupContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#lookup( LookupOperationContext )
call.lookup
in interface Interceptor
lookup
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public void modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#modify( ModifyOperationContext )
call.modify
in interface Interceptor
modify
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public void move(MoveOperationContext moveContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#move( MoveOperationContext )
call.move
in interface Interceptor
move
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public void moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#moveAndRename( MoveAndRenameOperationContext)
call.moveAndRename
in interface Interceptor
moveAndRename
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public void rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#rename( RenameOperationContext )
call.rename
in interface Interceptor
rename
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public EntryFilteringCursor search(SearchOperationContext searchContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#search( SearchOperationContext )
call.search
in interface Interceptor
search
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public void unbind(UnbindOperationContext unbindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#unbind( UnbindOperationContext )
call.unbind
in interface Interceptor
unbind
in class BaseInterceptor
org.apache.directory.api.ldap.model.exception.LdapException
public void loadPwdPolicyStateAttributeTypes() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
- If the initialization failedpublic PasswordPolicyConfiguration getPwdPolicy(org.apache.directory.api.ldap.model.entry.Entry userEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
userEntry
- the user's entryorg.apache.directory.api.ldap.model.exception.LdapException
public void setPwdPolicies(PpolicyConfigContainer policyContainer)
policyContainer
- the container holding all the password policiespublic boolean isPwdPolicyEnabled()
public PpolicyConfigContainer getPwdPolicyContainer()
public void setPwdPolicyContainer(PpolicyConfigContainer pwdPolicyContainer)
pwdPolicyContainer
- the pwdPolicyContainer to setCopyright © 2016. All rights reserved.