Class HttpBasicRetriever
java.lang.Object
ch.tocco.nice2.web.core.impl.auth.credentials.HttpBasicRetriever
- All Implemented Interfaces:
CredentialsRetriever
Retrieves credentials from the request header as specified in
RFC2617 and
returns a
UsernamePasswordCredentials
object if
such header is found.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCredentials
(jakarta.servlet.http.HttpServletRequest request) Returns credentials found in the request or null if none was found.
-
Constructor Details
-
HttpBasicRetriever
public HttpBasicRetriever()
-
-
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
-