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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.Authentication
    authenticate(org.springframework.security.core.Authentication authentication)
    Authenticates the user based on the provided credentials.
    boolean
    supports(Class<?> authentication)
    Checks if the authentication provider supports the specified authentication class.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      authenticate in interface org.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

      public boolean supports(Class<?> authentication)
      Checks if the authentication provider supports the specified authentication class.
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider
      Parameters:
      authentication - the authentication class to check
      Returns:
      true if the authentication provider supports the class, false otherwise