Class JWSAuthenticator<A extends Authentication>

java.lang.Object
io.inverno.mod.security.jose.jws.JWSAuthenticator<A>
Type Parameters:
A - the original authentication type
All Implemented Interfaces:
Authenticator<TokenCredentials,JWSAuthentication<A>>

public class JWSAuthenticator<A extends Authentication> extends Object implements 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 Details

    • JWSAuthenticator

      public JWSAuthenticator(JWSService jwsService, Class<A> authenticationType)

      Creates a JWS authenticator with the specified JWS service and original authentication type.

      Parameters:
      jwsService - the JWS service
      authenticationType - the original authentication type
    • JWSAuthenticator

      public JWSAuthenticator(JWSService jwsService, Type authenticationType)

      Creates a JWS authenticator with the specified JWS service and original authentication type.

      Parameters:
      jwsService - the JWS service
      authenticationType - 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 service
      authenticationType - the original authentication type
      keys - 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 service
      authenticationType - the original authentication type
      keys - 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 service
      authenticationType - the original authentication type
      processedParameters - 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 service
      authenticationType - the original authentication type
      processedParameters - 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 service
      authenticationType - the original authentication type
      keys - the keys to consider to verify the JWS
      processedParameters - 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 service
      authenticationType - the original authentication type
      keys - the keys to consider to verify the JWS
      processedParameters - the parameters processed by the application
  • Method Details