| org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
All known Subclasses: org.apache.jetspeed.security.spi.impl.InternalPasswordCredentialInterceptorsProxy, org.apache.jetspeed.security.spi.impl.AbstractInternalPasswordCredentialInterceptorImpl,
Method Summary | |
boolean | afterAuthenticated(InternalUserPrincipal internalUser, String userName, InternalCredential credential, boolean authenticated) | boolean | afterLoad(PasswordCredentialProvider pcProvider, String userName, InternalCredential credential) | void | beforeCreate(InternalUserPrincipal internalUser, Collection credentials, String userName, InternalCredential credential, String password) | void | beforeSetPassword(InternalUserPrincipal internalUser, Collection credentials, String userName, InternalCredential credential, String password, boolean authenticated)
Invoked when a new password value is to be saved for a user.
The new password value is not yet set on the provided credential when this callback is invoked. |
beforeSetPassword | void beforeSetPassword(InternalUserPrincipal internalUser, Collection credentials, String userName, InternalCredential credential, String password, boolean authenticated) throws SecurityException(Code) | |
Invoked when a new password value is to be saved for a user.
The new password value is not yet set on the provided credential when this callback is invoked. This allows
custom history maintenance and/or auditing to be performed.
The provided authenticated flag can be used to differentiate between a new password value set directly by a user
itself or through an administrative interface.
After this callback is invoked, the specified password value will be set, as well as a reset of the
InternalCredential.isUpdateRequired updateRequired flag, before the credential is saved.
A thrown SecurityException is passed on to the set password requestor.
Parameters: internalUser - the user to which the credential belongs Parameters: credentials - the collection of credentials which will set on the user after (already contains the new credential) Parameters: userName - the name of the principal to which the credential belongs Parameters: credential - the credential of the user Parameters: password - the new password value (already set on the new credential) Parameters: authenticated - true if the new password value is provided by the user directly throws: SecurityException - See Also: org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler.setPassword(StringStringString) |
|
|