Module io.inverno.mod.security.http
Class JWTSessionCredentialsExtractor<A extends Authentication,B,C extends JWTSessionContext<B,A>,D extends Exchange<C>>
java.lang.Object
io.inverno.mod.security.http.session.jwt.JWTSessionCredentialsExtractor<A,B,C,D>
- Type Parameters:
A
- the authentication typeB
- the session data typeC
- the JWT session context typeD
- the exchange type
- All Implemented Interfaces:
CredentialsExtractor<SessionCredentials<A>,
C, D>
public class JWTSessionCredentialsExtractor<A extends Authentication,B,C extends JWTSessionContext<B,A>,D extends Exchange<C>>
extends Object
implements CredentialsExtractor<SessionCredentials<A>,C,D>
A credentials extractor that extracts session credentials from a JWT session.
This basically looks for the Authentication
stored in the stateless session data embedded in the JWT session id and returns a SessionCredentials
containing the authentication.
- Since:
- 1.13
- 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, wait
Methods inherited from interface io.inverno.mod.security.http.CredentialsExtractor
or
-
Constructor Details
-
JWTSessionCredentialsExtractor
public JWTSessionCredentialsExtractor()
-
-
Method Details
-
extract
Description copied from interface:CredentialsExtractor
Extracts credentials from the specified exchange.
- Specified by:
extract
in interfaceCredentialsExtractor<A extends Authentication,
B, C extends JWTSessionContext<B, 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
-