Class JWEAuthenticator<A extends Authentication>

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

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

    • JWEAuthenticator

      public JWEAuthenticator(JWEService jweService, Class<A> authenticationType)

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

      Parameters:
      jweService - the JWE service
      authenticationType - the original authentication type
    • JWEAuthenticator

      public JWEAuthenticator(JWEService jweService, Type authenticationType)

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

      Parameters:
      jweService - the JWE service
      authenticationType - 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 service
      authenticationType - the original authentication type
      keys - 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 service
      authenticationType - the original authentication type
      keys - 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 service
      authenticationType - the original authentication type
      processedParameters - 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 service
      authenticationType - the original authentication type
      processedParameters - 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 service
      authenticationType - the original authentication type
      keys - the keys to consider to decode the JWE
      processedParameters - 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 service
      authenticationType - the original authentication type
      keys - the keys to consider to cecode the JWE
      processedParameters - the parameters processed by the application
  • Method Details