org.apache.directory.server.core.kerberos
Class PasswordPolicyInterceptor

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.BaseInterceptor
      extended by org.apache.directory.server.core.kerberos.PasswordPolicyInterceptor
All Implemented Interfaces:
Interceptor

public class PasswordPolicyInterceptor
extends BaseInterceptor

An Interceptor that enforces password policy for users. Add or modify operations on the 'userPassword' attribute are checked against a password policy. The password is rejected if it does not pass the password policy checks. The password MUST be passed to the core as plaintext.

Version:
$Rev$, $Date$
Author:
Apache Directory Project
'XBean'

Field Summary
static java.lang.String NAME
          The service name.
 
Constructor Summary
PasswordPolicyInterceptor()
           
 
Method Summary
 void add(NextInterceptor next, AddOperationContext addContext)
          Check added attributes for a 'userPassword'.
 void modify(NextInterceptor next, ModifyOperationContext modContext)
          Check modification items for a 'userPassword'.
 
Methods inherited from class org.apache.directory.server.core.interceptor.BaseInterceptor
addContextPartition, bind, compare, delete, destroy, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, init, list, listSuffixes, lookup, move, moveAndRename, removeContextPartition, rename, search, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
The service name.

See Also:
Constant Field Values
Constructor Detail

PasswordPolicyInterceptor

public PasswordPolicyInterceptor()
Method Detail

add

public void add(NextInterceptor next,
                AddOperationContext addContext)
         throws java.lang.Exception
Check added attributes for a 'userPassword'. If a 'userPassword' is found, apply any password policy checks.

Specified by:
add in interface Interceptor
Overrides:
add in class BaseInterceptor
Throws:
java.lang.Exception

modify

public void modify(NextInterceptor next,
                   ModifyOperationContext modContext)
            throws java.lang.Exception
Check modification items for a 'userPassword'. If a 'userPassword' is found, apply any password policy checks.

Specified by:
modify in interface Interceptor
Overrides:
modify in class BaseInterceptor
Throws:
java.lang.Exception


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.