Class JWSAuthenticator<A extends Authentication>
- Type Parameters:
A- the original authentication type
- All Implemented Interfaces:
Authenticator<TokenCredentials,JWSAuthentication<A>>
An authenticator implementation that authenticates JWS token credentials and expose the original authentication.
The expected token must be a valid JWS compact string.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorsConstructorDescriptionJWSAuthenticator(JWSService jwsService, Class<A> authenticationType) Creates a JWS authenticator with the specified JWS service and original authentication type.JWSAuthenticator(JWSService jwsService, Class<A> authenticationType, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type and processed parameters.JWSAuthenticator(JWSService jwsService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWS authenticator with the specified JWS service, original authentication type and keys.JWSAuthenticator(JWSService jwsService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type, keys and processed parameters.JWSAuthenticator(JWSService jwsService, Type authenticationType) Creates a JWS authenticator with the specified JWS service and original authentication type.JWSAuthenticator(JWSService jwsService, Type authenticationType, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type and processed parameters.JWSAuthenticator(JWSService jwsService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWS authenticator with the specified JWS service, original authentication type and keys.JWSAuthenticator(JWSService jwsService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type, keys and processed parameters. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<JWSAuthentication<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
-
JWSAuthenticator
Creates a JWS authenticator with the specified JWS service and original authentication type.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication type
-
JWSAuthenticator
Creates a JWS authenticator with the specified JWS service and original authentication type.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication type
-
JWSAuthenticator
public JWSAuthenticator(JWSService jwsService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWS authenticator with the specified JWS service, original authentication type and keys.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication typekeys- the keys to consider to verify the JWS
-
JWSAuthenticator
public JWSAuthenticator(JWSService jwsService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys) Creates a JWS authenticator with the specified JWS service, original authentication type and keys.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication typekeys- the keys to consider to verify the JWS
-
JWSAuthenticator
public JWSAuthenticator(JWSService jwsService, Class<A> authenticationType, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type and processed parameters.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication typeprocessedParameters- the parameters processed by the application
-
JWSAuthenticator
public JWSAuthenticator(JWSService jwsService, Type authenticationType, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type and processed parameters.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication typeprocessedParameters- the parameters processed by the application
-
JWSAuthenticator
public JWSAuthenticator(JWSService jwsService, Class<A> authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type, keys and processed parameters.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication typekeys- the keys to consider to verify the JWSprocessedParameters- the parameters processed by the application
-
JWSAuthenticator
public JWSAuthenticator(JWSService jwsService, Type authenticationType, org.reactivestreams.Publisher<? extends JWK> keys, String... processedParameters) Creates a JWS authenticator with the specified JWS service, original authentication type, keys and processed parameters.
- Parameters:
jwsService- the JWS serviceauthenticationType- the original authentication typekeys- the keys to consider to verify the JWSprocessedParameters- the parameters processed by the application
-
-
Method Details
-
authenticate
- Specified by:
authenticatein interfaceAuthenticator<TokenCredentials,JWSAuthentication<A extends Authentication>>
-