|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.spi.impl.AbstractInternalPasswordCredentialInterceptorImpl
org.apache.jetspeed.security.spi.impl.ValidatePasswordOnLoadInterceptor
public class ValidatePasswordOnLoadInterceptor
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.
| Constructor Summary | |
|---|---|
ValidatePasswordOnLoadInterceptor()
|
|
| Method Summary | |
|---|---|
boolean |
afterLoad(PasswordCredentialProvider pcProvider,
java.lang.String userName,
InternalCredential credential)
Invoked after a password credential is loaded from the persistent store. |
| Methods inherited from class org.apache.jetspeed.security.spi.impl.AbstractInternalPasswordCredentialInterceptorImpl |
|---|
afterAuthenticated, beforeCreate, beforeSetPassword |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatePasswordOnLoadInterceptor()
| Method Detail |
|---|
public boolean afterLoad(PasswordCredentialProvider pcProvider,
java.lang.String userName,
InternalCredential credential)
throws SecurityException
InternalPasswordCredentialInterceptorInvoked after a password credential is loaded from the persistent store.
If true is returned the credential is expected to be updated and its changes will be stored again.
A thrown SecurityException will be logged as an error and result in the credential to be ignored as if not existing (like for authentication).
afterLoad in interface InternalPasswordCredentialInterceptorafterLoad in class AbstractInternalPasswordCredentialInterceptorImplpcProvider - provides callback access to for instance the configured CredentialPasswordEncoder and
CredentialPasswordValidatoruserName - the name of the principal to which the credential belongscredential - the credential just loaded from the persistent store
SecurityExceptionInternalPasswordCredentialInterceptor.afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider, java.lang.String, org.apache.jetspeed.security.om.InternalCredential)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||