Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Qpid JMS clients for AMQP 1.0 allows to register an implementation of BiFunction<Connection, URI, Object>  as a password connection extension on JmsConnectionFactory . On If extension is set, on opening connection the registered function can be is invoked to supply the token. The provide a password. Such function can be used to check the access token expiration time and re-generate or refresh the token  by invoking OAUTH2 provider API. The following sample code illustrates this approach for token regeneration

...