Class RestControllerMe


  • @RestController
    @RequestMapping(value="/v1/authkit/me",
                    produces="application/json")
    public class RestControllerMe
    extends Object
    • Constructor Detail

      • RestControllerMe

        public RestControllerMe()
    • Method Detail

      • changeMyPassword

        @Transactional(readOnly=false)
        @PostMapping("chpasswd")
        public org.springframework.http.ResponseEntity<BaseRepresentationModel> changeMyPassword​(@RequestBody @Validated
                                                                                                 ChangeMyPasswordDto chPasswordDto,
                                                                                                 javax.servlet.http.HttpServletRequest request)
      • isExternalAuth

        @Transactional(readOnly=true)
        @GetMapping("is-external-auth")
        public org.springframework.http.ResponseEntity<IsExternalAuthDto> isExternalAuth​(javax.servlet.http.HttpServletRequest request)
      • prepareTOTP

        @Transactional(readOnly=true)
        @GetMapping("set2auth")
        public org.springframework.http.ResponseEntity<SetupTOTPDto> prepareTOTP​(javax.servlet.http.HttpServletRequest request)
      • confirmTOTP

        @Transactional(readOnly=false)
        @PostMapping("set2auth")
        public org.springframework.http.ResponseEntity<BaseRepresentationModel> confirmTOTP​(@RequestBody @Validated
                                                                                            ValidationSetupTOTPDto setupDto,
                                                                                            javax.servlet.http.HttpServletRequest request)
      • hasATOTP

        @Transactional(readOnly=true)
        @GetMapping("has2auth")
        public org.springframework.http.ResponseEntity<IsTOTPEnabledDto> hasATOTP​(javax.servlet.http.HttpServletRequest request)
      • removeTOTP

        @Transactional(readOnly=false)
        @DeleteMapping("set2auth")
        public org.springframework.http.ResponseEntity<BaseRepresentationModel> removeTOTP​(@RequestBody @Validated
                                                                                           ValidationTOTPDto validationDto,
                                                                                           javax.servlet.http.HttpServletRequest request)
      • getPrivacy

        @Transactional(readOnly=true)
        @GetMapping("privacy")
        public org.springframework.http.ResponseEntity<UserPrivacyDto> getPrivacy​(javax.servlet.http.HttpServletRequest request)
      • setPrivacy

        @Transactional(readOnly=false)
        @PutMapping("privacy")
        public org.springframework.http.ResponseEntity<BaseRepresentationModel> setPrivacy​(@RequestBody @Validated
                                                                                           UserPrivacyDto userPrivacyDto,
                                                                                           javax.servlet.http.HttpServletRequest request)