Class PasswordRetriever
java.lang.Object
ch.tocco.nice2.web.core.impl.auth.credentials.PasswordRetriever
- All Implemented Interfaces:
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasList
(jakarta.servlet.http.HttpServletRequest request) getCredentials
(jakarta.servlet.http.HttpServletRequest request) Returns credentials found in the request or null if none was found.
-
Constructor Details
-
PasswordRetriever
-
-
Method Details
-
getCredentials
public Credentials getCredentials(jakarta.servlet.http.HttpServletRequest request) throws CredentialsRetrievingException Description copied from interface:CredentialsRetriever
Returns credentials found in the request or null if none was found.- Specified by:
getCredentials
in interfaceCredentialsRetriever
- Throws:
CredentialsRetrievingException
-
asList
public List<Credentials> asList(jakarta.servlet.http.HttpServletRequest request) throws CredentialsRetrievingException - Throws:
CredentialsRetrievingException
-