Class SecurityController
java.lang.Object
org.springframework.cloud.dataflow.server.controller.security.SecurityController
@RestController
@RequestMapping("/security/info")
@ExposesResourceFor(SecurityInfoResource.class)
public class SecurityController
extends Object
Provides security-related meta information. Provides one REST endpoint at present time
/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.- Since:
- 1.0
- Author:
- Gunnar Hillert, Ilayaperumal Gopinathan
-
Constructor Summary
ConstructorDescriptionSecurityController
(org.springframework.cloud.common.security.support.SecurityStateBean securityStateBean) -
Method Summary
Modifier and TypeMethodDescriptionReturn security information.
-
Constructor Details
-
SecurityController
public SecurityController(org.springframework.cloud.common.security.support.SecurityStateBean securityStateBean)
-
-
Method Details
-
getSecurityInfo
Return security information. E.g. is security enabled? Which user do you represent?- Returns:
- the security info
-