Class AuthenticationRestController
java.lang.Object
transmatter.platform.administration.security.controller.AuthenticationRestController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.springframework.security.authentication.AuthenticationManager(package private) AuthorityRepository(package private) EmailServiceprivate JwtTokenUtilprivate Stringprivate org.springframework.security.core.userdetails.UserDetailsService(package private) UserService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>addUser(JwtAuthenticationRequest authenticationRequest, org.springframework.mobile.device.Device device) org.springframework.http.ResponseEntity<?>createAuthenticationToken(JwtAuthenticationRequest authenticationRequest, org.springframework.mobile.device.Device device) org.springframework.http.ResponseEntity<?>refreshAndGetAuthenticationToken(javax.servlet.http.HttpServletRequest request)
-
Field Details
-
tokenHeader
-
authenticationManager
@Autowired private org.springframework.security.authentication.AuthenticationManager authenticationManager -
jwtTokenUtil
-
userDetailsService
@Autowired private org.springframework.security.core.userdetails.UserDetailsService userDetailsService -
userService
-
emailService
-
authorityRepository
-
-
Constructor Details
-
AuthenticationRestController
public AuthenticationRestController()
-
-
Method Details
-
createAuthenticationToken
@PostMapping("${jwt.route.authentication.path}") public org.springframework.http.ResponseEntity<?> createAuthenticationToken(@RequestBody JwtAuthenticationRequest authenticationRequest, org.springframework.mobile.device.Device device) throws org.springframework.security.core.AuthenticationException - Throws:
org.springframework.security.core.AuthenticationException
-
refreshAndGetAuthenticationToken
@GetMapping("${jwt.route.authentication.refresh}") public org.springframework.http.ResponseEntity<?> refreshAndGetAuthenticationToken(javax.servlet.http.HttpServletRequest request) -
addUser
@PostMapping("${jwt.route.register.path}") public org.springframework.http.ResponseEntity<?> addUser(@RequestBody JwtAuthenticationRequest authenticationRequest, org.springframework.mobile.device.Device device) throws org.springframework.security.core.AuthenticationException, javax.mail.MessagingException, IOException - Throws:
org.springframework.security.core.AuthenticationExceptionjavax.mail.MessagingExceptionIOException
-