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) Extract theCredentialsfrom aWebContextand returnOptional.empty()if no credentials are present or throw aCredentialsExceptionif it cannot get it.
-
Method Details
-
extract
Extract theCredentialsfrom aWebContextand returnOptional.empty()if no credentials are present or throw aCredentialsExceptionif it cannot get it.- Parameters:
context- the current web contextsessionStore- the session store- Returns:
- the credentials (optional)
-