public class ConfigurableHashingInterceptor extends BaseInterceptor
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.constants.LdapSecurityConstants |
algorithm |
private java.util.List<org.apache.directory.api.ldap.model.schema.AttributeType> |
attributeTypes |
private HashInterceptorBean |
config
the hashing algorithm to be used
|
directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager| Constructor and Description |
|---|
ConfigurableHashingInterceptor(HashInterceptorBean config)
Creates a new instance of ConfigurableHashingInterceptor which hashes the
incoming non-hashed attributeType(s) using the given algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AddOperationContext addContext)
Filters
Partition#add( AddOperationContext ) call. |
org.apache.directory.api.ldap.model.constants.LdapSecurityConstants |
getAlgorithm() |
java.util.List<org.apache.directory.api.ldap.model.schema.AttributeType> |
getAttributeTypes() |
private void |
includeHashed(org.apache.directory.api.ldap.model.entry.Attribute attribute) |
void |
init(DirectoryService directoryService)
This method does nothing by default.
|
void |
modify(ModifyOperationContext modifyContext)
Filters
Partition#modify( ModifyOperationContext ) call. |
bind, compare, delete, destroy, getName, getNextInterceptor, getPrincipal, getRootDse, hasEntry, lookup, move, moveAndRename, next, next, next, next, next, next, next, next, next, next, next, next, next, rename, search, unbindprivate HashInterceptorBean config
private org.apache.directory.api.ldap.model.constants.LdapSecurityConstants algorithm
private java.util.List<org.apache.directory.api.ldap.model.schema.AttributeType> attributeTypes
public ConfigurableHashingInterceptor(HashInterceptorBean config)
config - The configuration beanpublic 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 org.apache.directory.api.ldap.model.constants.LdapSecurityConstants getAlgorithm()
public java.util.List<org.apache.directory.api.ldap.model.schema.AttributeType> getAttributeTypes()
private void includeHashed(org.apache.directory.api.ldap.model.entry.Attribute attribute)
throws org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException
org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueExceptionpublic void init(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
init in interface Interceptorinit in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic 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.LdapException