Class AmazonSecurityTokenServiceEndpoint


  • @RestControllerEndpoint(id="awsSts",
                            enableByDefault=false)
    public class AmazonSecurityTokenServiceEndpoint
    extends org.apereo.cas.web.BaseCasActuatorEndpoint
    Since:
    6.4.0
    • Field Summary

      • Fields inherited from class org.apereo.cas.web.BaseCasActuatorEndpoint

        casProperties, MEDIA_TYPE_SPRING_BOOT_V2_JSON, MEDIA_TYPE_SPRING_BOOT_V3_JSON
    • Constructor Summary

      Constructors 
      Constructor Description
      AmazonSecurityTokenServiceEndpoint​(org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.rest.authentication.RestAuthenticationService restAuthenticationService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<java.lang.String> fetchCredentials​(java.lang.String duration, java.lang.String tokenCode, java.lang.String profile, java.lang.String serialNumber, java.lang.String roleArn, org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String> requestBody, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Fetch credentials.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AmazonSecurityTokenServiceEndpoint

        public AmazonSecurityTokenServiceEndpoint​(org.apereo.cas.configuration.CasConfigurationProperties casProperties,
                                                  org.apereo.cas.rest.authentication.RestAuthenticationService restAuthenticationService)
    • Method Detail

      • fetchCredentials

        @PostMapping
        public org.springframework.http.ResponseEntity<java.lang.String> fetchCredentials​(@RequestParam(required=false,defaultValue="PT1H")
                                                                                          java.lang.String duration,
                                                                                          @RequestParam(value="token",required=false)
                                                                                          java.lang.String tokenCode,
                                                                                          @RequestParam(required=false)
                                                                                          java.lang.String profile,
                                                                                          @RequestParam(required=false)
                                                                                          java.lang.String serialNumber,
                                                                                          @RequestParam(required=false)
                                                                                          java.lang.String roleArn,
                                                                                          @RequestBody
                                                                                          org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String> requestBody,
                                                                                          javax.servlet.http.HttpServletRequest request,
                                                                                          javax.servlet.http.HttpServletResponse response)
        Fetch credentials.
        Parameters:
        duration - the duration
        tokenCode - the token code
        profile - the profile
        serialNumber - the serial number
        roleArn - the role arn
        requestBody - the request body
        request - the request
        response - the response
        Returns:
        the map