Class BearerAuthExtractor
java.lang.Object
org.pac4j.core.credentials.extractor.BearerAuthExtractor
- All Implemented Interfaces:
CredentialsExtractor
To extract an RFC 6750 bearer auth header.
- Since:
- 3.5.0
- Author:
- Graham Leggett
-
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
-
BearerAuthExtractor
public BearerAuthExtractor() -
BearerAuthExtractor
-
-
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)
-