Class PasswordFlowReactiveAuthenticationManager
- java.lang.Object
-
- org.bremersee.security.authentication.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(org.bremersee.security.authentication.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, org.bremersee.security.authentication.AccessTokenRetriever<reactor.core.publisher.Mono<String>> retriever)
Instantiates a new password flow reactive authentication manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<org.springframework.security.core.Authentication>
authenticate(org.springframework.security.core.Authentication authentication)
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.
-
-
-
Constructor Detail
-
PasswordFlowReactiveAuthenticationManager
public PasswordFlowReactiveAuthenticationManager(org.bremersee.security.authentication.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 org.bremersee.security.authentication.AccessTokenRetriever<reactor.core.publisher.Mono<String>> retriever)
Instantiates a new password flow reactive authentication manager.- Parameters:
passwordFlowProperties
- the password flow propertiesjwtDecoder
- the jwt decoderjwtConverter
- the jwt converterretriever
- 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 interfaceorg.springframework.security.authentication.ReactiveAuthenticationManager
-
-