Class JWEAuthenticator<A extends Authentication>
- Type Parameters:
A- the original authentication type
- All Implemented Interfaces:
Authenticator<TokenCredentials,JWEAuthentication<A>>
An authenticator implementation that authenticates JWE token credentials and expose the original authentication.
The expected token must be a valid JWE compact string.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorsConstructorDescriptionJWEAuthenticator(JWEService jweService, Class<A> authenticationType) Creates a JWE authenticator with the specified JWE service and original authentication type.JWEAuthenticator(JWEService jweService, Class<A> authenticationType, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type and processed parameters.JWEAuthenticator(JWEService jweService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWE authenticator with the specified JWE service, original authentication type and keys.JWEAuthenticator(JWEService jweService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type, keys and processed parameters.JWEAuthenticator(JWEService jweService, Type authenticationType) Creates a JWE authenticator with the specified JWE service and original authentication type.JWEAuthenticator(JWEService jweService, Type authenticationType, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type and processed parameters.JWEAuthenticator(JWEService jweService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWE authenticator with the specified JWE service, original authentication type and keys.JWEAuthenticator(JWEService jweService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type, keys and processed parameters. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<JWEAuthentication<A>>authenticate(TokenCredentials credentials) 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.authentication.Authenticator
failOnDenied, failOnDeniedAndAnonymous, flatMap, map, or
-
Constructor Details
-
JWEAuthenticator
Creates a JWE authenticator with the specified JWE service and original authentication type.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication type
-
JWEAuthenticator
Creates a JWE authenticator with the specified JWE service and original authentication type.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication type
-
JWEAuthenticator
public JWEAuthenticator(JWEService jweService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWE authenticator with the specified JWE service, original authentication type and keys.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication typekeys- the keys to consider to decode the JWE
-
JWEAuthenticator
public JWEAuthenticator(JWEService jweService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWE authenticator with the specified JWE service, original authentication type and keys.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication typekeys- the keys to consider to decode the JWE
-
JWEAuthenticator
public JWEAuthenticator(JWEService jweService, Class<A> authenticationType, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type and processed parameters.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication typeprocessedParameters- the parameters processed by the application
-
JWEAuthenticator
public JWEAuthenticator(JWEService jweService, Type authenticationType, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type and processed parameters.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication typeprocessedParameters- the parameters processed by the application
-
JWEAuthenticator
public JWEAuthenticator(JWEService jweService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type, keys and processed parameters.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication typekeys- the keys to consider to decode the JWEprocessedParameters- the parameters processed by the application
-
JWEAuthenticator
public JWEAuthenticator(JWEService jweService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWE authenticator with the specified JWE service, original authentication type, keys and processed parameters.
- Parameters:
jweService- the JWE serviceauthenticationType- the original authentication typekeys- the keys to consider to cecode the JWEprocessedParameters- the parameters processed by the application
-
-
Method Details
-
authenticate
- Specified by:
authenticatein interfaceAuthenticator<TokenCredentials,JWEAuthentication<A extends Authentication>>
-