Class PasswordRetriever

java.lang.Object
ch.tocco.nice2.web.core.impl.auth.credentials.PasswordRetriever
All Implemented Interfaces:
CredentialsRetriever

public class PasswordRetriever extends Object implements CredentialsRetriever

Looks for a configurable request parameter specifying the password of a user. The user is assumed to be already logged in. It then creates UsernamePasswordCredentials containing the currently logged in user together with the specified password from the request.

This is used to re-authenticate an already logged in user, for example when changing credentials. In this case the client may only send a password with its request.