public class KeyDerivationInterceptor extends BaseInterceptor
Interceptor
that creates symmetric Kerberos keys for users. When a
'userPassword' is added or modified, the 'userPassword' and 'krb5PrincipalName'
are used to derive Kerberos keys. If the 'userPassword' is the special keyword
'randomKey', a random key is generated and used as the Kerberos key.directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager
Constructor and Description |
---|
KeyDerivationInterceptor()
Creates an instance of a KeyDerivationInterceptor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AddOperationContext addContext)
Intercepts the addition of the 'userPassword' and 'krb5PrincipalName' attributes.
|
void |
init(DirectoryService directoryService)
This method does nothing by default.
|
void |
modify(ModifyOperationContext modContext)
Intercept the modification of the 'userPassword' attribute.
|
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, unbind
public KeyDerivationInterceptor()
public void init(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
init
in interface Interceptor
init
in class BaseInterceptor
directoryService
- The DirectoryService instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If the initialization failedpublic void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
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 modify(ModifyOperationContext modContext) throws org.apache.directory.api.ldap.model.exception.LdapException
modify
in interface Interceptor
modify
in class BaseInterceptor
modContext
- The ModifyOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Modify operationCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.