org.apache.jetspeed.security.spi.impl
Class ValidatePasswordOnLoadInterceptor
java.lang.Object
org.apache.jetspeed.security.spi.impl.AbstractInternalPasswordCredentialInterceptorImpl
org.apache.jetspeed.security.spi.impl.ValidatePasswordOnLoadInterceptor
- All Implemented Interfaces:
- org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
public class ValidatePasswordOnLoadInterceptor
- extends AbstractInternalPasswordCredentialInterceptorImpl
Checks if a (pre)set password in the persitent store is valid according to the configured
validator
when loaded from the persistent store.
If the password checks out to be invalid, an error is logged and the credential is flagged to be
updateRequired
.
- Version:
- $Id$
- Author:
- Ate Douma
Field Summary |
private static org.apache.commons.logging.Log |
log
|
Method Summary |
boolean |
afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider,
String userName,
org.apache.jetspeed.security.om.InternalCredential credential)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.commons.logging.Log log
ValidatePasswordOnLoadInterceptor
public ValidatePasswordOnLoadInterceptor()
afterLoad
public boolean afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider,
String userName,
org.apache.jetspeed.security.om.InternalCredential credential)
throws org.apache.jetspeed.security.SecurityException
- Specified by:
afterLoad
in interface org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
- Overrides:
afterLoad
in class AbstractInternalPasswordCredentialInterceptorImpl
- Returns:
- true is the password was invalid and update is required
- Throws:
org.apache.jetspeed.security.SecurityException
- See Also:
InternalPasswordCredentialInterceptor.afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider, java.lang.String, org.apache.jetspeed.security.om.InternalCredential)
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.