Class AuthenticationController

java.lang.Object
security.controller.AuthenticationController
All Implemented Interfaces:
BaseAuthenticationController<Credentials>

@RestController @AuthMethodConditional(FORM) public class AuthenticationController extends Object implements BaseAuthenticationController<Credentials>
Author:
Ildar
  • Constructor Details

  • Method Details

    • setRegistrationService

      @Autowired(required=false) public void setRegistrationService(RegistrationService registrationService)
    • setVerificationLinkService

      @Autowired(required=false) public void setVerificationLinkService(VerificationLinkService verificationLinkService)
    • setChangePasswordService

      @Autowired(required=false) public void setChangePasswordService(ChangePasswordService changePasswordService)
    • authenticate

      @RequestMapping(value="/security/authenticate", method=POST, consumes="application/json", headers="Auth-method=Password") public void authenticate(@RequestBody Credentials credentials, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Specified by:
      authenticate in interface BaseAuthenticationController<Credentials>
    • refreshToken

      @RequestMapping(value="/security/refresh-token", method=PUT) public void refreshToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • register

      @RequestMapping(value="/security/register", method=POST, consumes="application/json") public void register(@Valid @RequestBody @Valid UserDto userDto, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • confirmEmail

      @RequestMapping(value="/security/confirm", method=PUT) public void confirmEmail(@RequestParam String link, javax.servlet.http.HttpServletResponse response)
    • resetPassword

      @RequestMapping(value="/security/reset-password", method=POST) public void resetPassword(@RequestParam String email, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • changePassword

      @RequestMapping(value="/security/change-password", method=PUT, consumes="application/json") public void changePassword(@Valid @RequestBody @Valid UserPasswordResetRequestDto dto, @RequestParam(name="token") String token, javax.servlet.http.HttpServletResponse response)