Module io.inverno.mod.security.http
Class BasicCredentialsExtractor
java.lang.Object
io.inverno.mod.security.http.basic.BasicCredentialsExtractor
- All Implemented Interfaces:
CredentialsExtractor<LoginCredentials>
public class BasicCredentialsExtractor
extends Object
implements CredentialsExtractor<LoginCredentials>
A credentials extractor that extracts basic
login credentials as defined by RFC 7617 Section 2.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtracts credentials from the specified exchange.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.security.http.CredentialsExtractor
or
-
Constructor Details
-
BasicCredentialsExtractor
public BasicCredentialsExtractor()
-
-
Method Details
-
extract
Description copied from interface:CredentialsExtractor
Extracts credentials from the specified exchange.
- Specified by:
extract
in interfaceCredentialsExtractor<LoginCredentials>
- Parameters:
exchange
- the exchange- Returns:
- a mono emitting the credentials or an empty mono if the exchange didn't provide any credentials
- Throws:
MalformedCredentialsException
- if credentials in the exchange are malformed
-