Module io.inverno.mod.security.http
Class DigestCredentialsExtractor
java.lang.Object
io.inverno.mod.security.http.digest.DigestCredentialsExtractor
- All Implemented Interfaces:
CredentialsExtractor<DigestCredentials>
public class DigestCredentialsExtractor
extends Object
implements CredentialsExtractor<DigestCredentials>
A credentials extractor that extracts digest credentials as defined by RFC 7616 Section 3.4.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<DigestCredentials> Extracts credentials from the specified exchange.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.security.http.CredentialsExtractor
or
-
Constructor Details
-
DigestCredentialsExtractor
public DigestCredentialsExtractor()
-
-
Method Details
-
extract
public reactor.core.publisher.Mono<DigestCredentials> extract(Exchange<?> exchange) throws MalformedCredentialsException Description copied from interface:CredentialsExtractorExtracts credentials from the specified exchange.
- Specified by:
extractin interfaceCredentialsExtractor<DigestCredentials>- 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
-