org.apache.jetspeed.security.impl
Class PasswordCredentialValveImpl

java.lang.Object
  extended by org.apache.jetspeed.pipeline.valve.AbstractValve
      extended by org.apache.jetspeed.security.impl.PasswordCredentialValveImpl
All Implemented Interfaces:
PasswordCredentialValve, org.apache.jetspeed.pipeline.valve.Valve

public class PasswordCredentialValveImpl
extends AbstractValve
implements PasswordCredentialValve

PasswordCredentialValve

Version:
$Id: PasswordCredentialValveImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
Ate Douma

Field Summary
private static String CHECKED_KEY
           
private  int[] expirationWarningDays
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
PasswordCredentialValveImpl()
          Create a PasswordCredentialValveImpl which only checks and handles PasswordCredential.isUpdateRequired().
PasswordCredentialValveImpl(List expirationWarningDays)
           Creates a PasswordCredentialValveImpl which, besides checking and handling PasswordCredential.isUpdateRequired(), also provides a warning when a password is about to be expired according to the provided list of expirationWarningDays.
 
Method Summary
 void invoke(org.apache.jetspeed.request.RequestContext request, org.apache.jetspeed.pipeline.valve.ValveContext context)
           
 String toString()
           
 
Methods inherited from class org.apache.jetspeed.pipeline.valve.AbstractValve
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.pipeline.valve.Valve
initialize
 

Field Detail

log

private static final org.apache.commons.logging.Log log

CHECKED_KEY

private static final String CHECKED_KEY

expirationWarningDays

private int[] expirationWarningDays
Constructor Detail

PasswordCredentialValveImpl

public PasswordCredentialValveImpl()
Create a PasswordCredentialValveImpl which only checks and handles PasswordCredential.isUpdateRequired().


PasswordCredentialValveImpl

public PasswordCredentialValveImpl(List expirationWarningDays)

Creates a PasswordCredentialValveImpl which, besides checking and handling PasswordCredential.isUpdateRequired(), also provides a warning when a password is about to be expired according to the provided list of expirationWarningDays.

Parameters:
expirationWarningDays - the list of days before password expiration when a warning should be presented
Method Detail

invoke

public void invoke(org.apache.jetspeed.request.RequestContext request,
                   org.apache.jetspeed.pipeline.valve.ValveContext context)
            throws org.apache.jetspeed.pipeline.PipelineException
Specified by:
invoke in interface org.apache.jetspeed.pipeline.valve.Valve
Specified by:
invoke in class AbstractValve
Throws:
org.apache.jetspeed.pipeline.PipelineException
See Also:
Valve.invoke(org.apache.jetspeed.request.RequestContext, org.apache.jetspeed.pipeline.valve.ValveContext)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.