org.springframework.cloud.dataflow.server.controller.security

## Class SecurityController

- java.lang.Object
- - org.springframework.cloud.dataflow.server.controller.security.SecurityController

-     @RestController
       @RequestMapping(value="/security/info")
       @ExposesResourceFor(value=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

    Constructors
    Constructor and Description
    `SecurityController(org.springframework.cloud.common.security.support.SecurityStateBean securityStateBean)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SecurityInfoResource` | `getSecurityInfo()` Return security information.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SecurityController

          public SecurityController(org.springframework.cloud.common.security.support.SecurityStateBean securityStateBean)

  - ### Method Detail

    - #### getSecurityInfo

          @ResponseBody
           @RequestMapping(method=GET)
           @ResponseStatus(value=OK)
          public SecurityInfoResource getSecurityInfo()

      Return security information. E.g. is security enabled? Which user do you represent?
      Returns:
        the security info

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.