Class PasswordFlowReactiveAuthenticationManager

  • All Implemented Interfaces:
    org.springframework.security.authentication.ReactiveAuthenticationManager

    public class PasswordFlowReactiveAuthenticationManager
    extends Object
    implements org.springframework.security.authentication.ReactiveAuthenticationManager
    The password flow reactive authentication manager.
    Author:
    Christian Bremer
    • Constructor Summary

      Constructors 
      Constructor Description
      PasswordFlowReactiveAuthenticationManager​(ClientCredentialsFlowProperties passwordFlowProperties, org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder, org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtConverter, AccessTokenRetriever<reactor.core.publisher.Mono<String>> retriever)
      Instantiates a new password flow reactive authentication manager.
    • Constructor Detail

      • PasswordFlowReactiveAuthenticationManager

        public PasswordFlowReactiveAuthenticationManager​(ClientCredentialsFlowProperties passwordFlowProperties,
                                                         org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder,
                                                         @Nullable
                                                         org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtConverter,
                                                         @Nullable
                                                         AccessTokenRetriever<reactor.core.publisher.Mono<String>> retriever)
        Instantiates a new password flow reactive authentication manager.
        Parameters:
        passwordFlowProperties - the password flow properties
        jwtDecoder - the jwt decoder
        jwtConverter - the jwt converter
        retriever - the retriever
    • Method Detail

      • setJwtAuthenticationConverter

        public void setJwtAuthenticationConverter​(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​? extends org.springframework.security.authentication.AbstractAuthenticationToken> jwtConverter)
        Sets jwt authentication converter.
        Parameters:
        jwtConverter - the jwt converter
      • authenticate

        public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate​(org.springframework.security.core.Authentication authentication)
        Specified by:
        authenticate in interface org.springframework.security.authentication.ReactiveAuthenticationManager