Class HelloController

java.lang.Object
info.ejava.examples.svc.authn.authcfg.controllers.HelloController

@RestController public class HelloController extends Object
  • Constructor Details

    • HelloController

      public HelloController()
  • Method Details

    • getHello

      @GetMapping("/api/anonymous/hello") public String getHello(@RequestParam(name="name",defaultValue="you",required=false) String name, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails user)
    • postHello

      @PostMapping(path="/api/anonymous/hello", consumes="text/plain", produces="text/plain") public String postHello(@RequestBody String name, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails user)
    • getHelloAuthn

      @GetMapping("/api/authn/hello") public String getHelloAuthn(@RequestParam(name="name",defaultValue="you",required=false) String name, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails user)
    • postHelloAuthn

      @PostMapping(path="/api/authn/hello", consumes="text/plain", produces="text/plain") public String postHelloAuthn(@RequestBody String name, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails user)
    • getHelloAlt

      @GetMapping("/api/alt/hello") public String getHelloAlt(@RequestParam(name="name",defaultValue="you",required=false) String name)
    • postHelloAlt

      @PostMapping(path="/api/alt/hello", consumes="text/plain", produces="text/plain") public String postHelloAlt(@RequestBody String name)