Class Ltpa2AuthManager
java.lang.Object
de.sephirothj.spring.security.ltpa2.reactive.Ltpa2AuthManager
- All Implemented Interfaces:
org.springframework.security.authentication.ReactiveAuthenticationManager
public class Ltpa2AuthManager
extends Object
implements org.springframework.security.authentication.ReactiveAuthenticationManager
Performs the final authentication of an
Authentication
instance previously created by Ltpa2AuthConverter
.- Author:
- Sephiroth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.security.core.Authentication>
authenticate
(org.springframework.security.core.Authentication authentication) Attempts to authenticate the providedAuthentication
with aLtpa2Token
as credentials
-
Constructor Details
-
Ltpa2AuthManager
public Ltpa2AuthManager()
-
-
Method Details
-
authenticate
public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication) Attempts to authenticate the providedAuthentication
with aLtpa2Token
as credentials- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.ReactiveAuthenticationManager
- Parameters:
authentication
- theAuthentication
to test- Returns:
- If authentication is successful an
Authentication
is returned. If authentication cannot be determined, an empty Mono is returned. If authentication fails, a Mono error is returned.
-