Class BasicAuthExtractor
java.lang.Object
org.pac4j.core.credentials.extractor.BasicAuthExtractor
- All Implemented Interfaces:
CredentialsExtractor
To extract basic auth header.
- Since:
- 1.8.0
- Author:
- Jerome Leleu
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
BasicAuthExtractor
public BasicAuthExtractor() -
BasicAuthExtractor
-
-
Method Details
-
extract
Description copied from interface:CredentialsExtractorExtract theCredentialsfrom aWebContextand returnOptional.empty()if no credentials are present or throw aCredentialsExceptionif it cannot get it.- Specified by:
extractin interfaceCredentialsExtractor- Parameters:
context- the current web contextsessionStore- the session store- Returns:
- the credentials (optional)
-