Module io.inverno.mod.security.http
Class BearerTokenCredentialsExtractor<A extends ExchangeContext,B extends Exchange<A>>
java.lang.Object
io.inverno.mod.security.http.token.BearerTokenCredentialsExtractor<A,B>
- All Implemented Interfaces:
CredentialsExtractor<TokenCredentials,A, B>
public class BearerTokenCredentialsExtractor<A extends ExchangeContext,B extends Exchange<A>>
extends Object
implements CredentialsExtractor<TokenCredentials,A,B>
A credentials extractor that extracts a token credentials from a bearer in the authorization HTTP header as defined by RFC
6750 Section 2.1.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
Constructors -
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, waitMethods inherited from interface io.inverno.mod.security.http.CredentialsExtractor
or
-
Constructor Details
-
BearerTokenCredentialsExtractor
public BearerTokenCredentialsExtractor()
-
-
Method Details
-
extract
Description copied from interface:CredentialsExtractorExtracts credentials from the specified exchange.
- Specified by:
extractin interfaceCredentialsExtractor<TokenCredentials,A extends ExchangeContext, B extends Exchange<A>> - 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
-