Class ReactiveAuthenticationManagerAdapter

  • All Implemented Interfaces:
    ReactiveAuthenticationManager

    public class ReactiveAuthenticationManagerAdapter
    extends java.lang.Object
    implements ReactiveAuthenticationManager
    Adapts an AuthenticationManager to the reactive APIs. This is somewhat necessary because many of the ways that credentials are stored (i.e. JDBC, LDAP, etc) do not have reactive implementations. What's more is it is generally considered best practice to store passwords in a hash that is intentionally slow which would block ever request from coming in unless it was put on another thread.
    Since:
    5.0
    • Constructor Detail

      • ReactiveAuthenticationManagerAdapter

        public ReactiveAuthenticationManagerAdapter​(AuthenticationManager authenticationManager)
    • Method Detail

      • setScheduler

        public void setScheduler​(reactor.core.scheduler.Scheduler scheduler)
        Set a scheduler that will be published on to perform the authentication logic.
        Parameters:
        scheduler - a scheduler to be published on
        Throws:
        java.lang.IllegalArgumentException - if the scheduler is null