@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.cloud.common.security.support.SecurityStateBean securityStateBean) |
Modifier and Type | Method and Description |
---|---|
SecurityInfoResource |
getSecurityInfo()
Return security information.
|
public SecurityController(org.springframework.cloud.common.security.support.SecurityStateBean securityStateBean)
@ResponseBody @RequestMapping(method=GET) @ResponseStatus(value=OK) public SecurityInfoResource getSecurityInfo()
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.