Interface CredentialsExtractor
- All Known Implementing Classes:
BasicAuthExtractor
,BearerAuthExtractor
,FormExtractor
,HeaderExtractor
,ParameterExtractor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A credentials extractor.
- Since:
- 1.8.0
- Author:
- Jerome Leleu
-
Method Summary
Modifier and TypeMethodDescriptionextract
(WebContext context, SessionStore sessionStore, ProfileManagerFactory profileManagerFactory) Extract theCredentials
from aWebContext
and returnOptional.empty()
if no credentials are present or throw aCredentialsException
if it cannot get it.
-
Method Details
-
extract
Optional<Credentials> extract(WebContext context, SessionStore sessionStore, ProfileManagerFactory profileManagerFactory) Extract theCredentials
from aWebContext
and returnOptional.empty()
if no credentials are present or throw aCredentialsException
if it cannot get it.- Parameters:
context
- the current web contextsessionStore
- the session storeprofileManagerFactory
- the profile manager factory- Returns:
- the credentials (optional)
-