@RestController @RequestMapping(value="/security/info") @ExposesResourceFor(value=SecurityInfoResource.class) public class SecurityController extends Object
/security/info
that provides information such as whether security
is enabled and if so what is the username of the currently logged in user etc.Constructor and Description |
---|
SecurityController(org.springframework.boot.autoconfigure.security.SecurityProperties securityProperties) |
public SecurityController(org.springframework.boot.autoconfigure.security.SecurityProperties securityProperties)
@ResponseBody @RequestMapping(method=GET) @ResponseStatus(value=OK) public SecurityInfoResource getSecurityInfo()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.