public abstract class PasswordHashingInterceptor extends BaseInterceptor
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.constants.LdapSecurityConstants |
algorithm
the hashing algorithm to be used, if null then the password won't be changed
|
directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager| Modifier | Constructor and Description |
|---|---|
protected |
PasswordHashingInterceptor(java.lang.String name,
org.apache.directory.api.ldap.model.constants.LdapSecurityConstants algorithm)
Creates a new instance of PasswordHashingInterceptor which hashes the
incoming non-hashed password using the given algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AddOperationContext addContext)
Filters
Partition#add( AddOperationContext ) call. |
private org.apache.directory.api.ldap.model.entry.Attribute |
includeHashedPassword(org.apache.directory.api.ldap.model.entry.Attribute pwdAt)
hash the password if it was not already hashed
|
void |
modify(ModifyOperationContext modifyContext)
Filters
Partition#modify( ModifyOperationContext ) call. |
bind, compare, delete, destroy, getName, getNextInterceptor, getPrincipal, getRootDse, hasEntry, init, lookup, move, moveAndRename, next, next, next, next, next, next, next, next, next, next, next, next, next, rename, search, unbindprivate org.apache.directory.api.ldap.model.constants.LdapSecurityConstants algorithm
protected PasswordHashingInterceptor(java.lang.String name,
org.apache.directory.api.ldap.model.constants.LdapSecurityConstants algorithm)
algorithm - the name of the algorithm to be usedpublic void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#add( AddOperationContext ) call.add in interface Interceptoradd in class BaseInterceptoraddContext - The AddOperationContext instanceorg.apache.directory.api.ldap.model.exception.LdapException - If we had some error while processing the Add operationpublic void modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#modify( ModifyOperationContext ) call.modify in interface Interceptormodify in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionprivate org.apache.directory.api.ldap.model.entry.Attribute includeHashedPassword(org.apache.directory.api.ldap.model.entry.Attribute pwdAt)
throws org.apache.directory.api.ldap.model.exception.LdapException
pwdAt - the password attributeorg.apache.directory.api.ldap.model.exception.LdapException