Package de.dlr.proseo.ui.gui
Class GUIAuthenticationProvider
java.lang.Object
de.dlr.proseo.ui.gui.GUIAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
@Component
public class GUIAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
Implementation of the AuthenticationProvider interface provided by Spring Security, handling the authentication process for the
GUI users.
- Author:
- David Mazo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) Authenticates the user based on the provided credentials.booleanChecks if the authentication provider supports the specified authentication class.
-
Constructor Details
-
GUIAuthenticationProvider
public GUIAuthenticationProvider()
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException Authenticates the user based on the provided credentials.- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Parameters:
authentication- the authentication object containing the user's credentials- Returns:
- the authenticated authentication object
- Throws:
org.springframework.security.core.AuthenticationException- if authentication fails
-
supports
Checks if the authentication provider supports the specified authentication class.- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider- Parameters:
authentication- the authentication class to check- Returns:
- true if the authentication provider supports the class, false otherwise
-