This project has retired. For details please refer to its
Attic page .
EncodePasswordOnFirstLoadInterceptor (Jetspeed-2 Security Components 2.1.3 API)
org.apache.jetspeed.security.spi.impl
Class EncodePasswordOnFirstLoadInterceptor
java.lang.Object
org.apache.jetspeed.security.spi.impl.AbstractInternalPasswordCredentialInterceptorImpl
org.apache.jetspeed.security.spi.impl.EncodePasswordOnFirstLoadInterceptor
All Implemented Interfaces: org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
public class EncodePasswordOnFirstLoadInterceptor extends AbstractInternalPasswordCredentialInterceptorImpl
Encodes (encrypts) an InternalCredential
password using the configured encoder
if it is loaded unencoded from the persistent store.
This interceptor is useful when credentials need to be preset in the persistent store (like through scripts) or
migrated unencoded from a different storage.
Version:
$Id$
Author:
Ate Douma
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
EncodePasswordOnFirstLoadInterceptor
public EncodePasswordOnFirstLoadInterceptor ()
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 if now encoded
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.