Class RedisTicketRegistryCacheEndpoint

java.lang.Object
org.apereo.cas.web.BaseCasActuatorEndpoint
org.apereo.cas.web.BaseCasRestActuatorEndpoint
org.apereo.cas.ticket.registry.RedisTicketRegistryCacheEndpoint

@Endpoint(id="redisTicketsCache", enableByDefault=false) public class RedisTicketRegistryCacheEndpoint extends org.apereo.cas.web.BaseCasRestActuatorEndpoint
Since:
7.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedisTicketRegistryCacheEndpoint(org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.ticket.registry.TicketRegistry> ticketRegistry, org.springframework.beans.factory.ObjectProvider<com.github.benmanes.caffeine.cache.Cache<String,org.apereo.cas.ticket.Ticket>> ticketCache)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity
    fetchTicket(String ticketId)
    Fetch ticket and return response entity.
    org.springframework.http.ResponseEntity
    Invalidate ticket and return response entity.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisTicketRegistryCacheEndpoint

      public RedisTicketRegistryCacheEndpoint(org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.ticket.registry.TicketRegistry> ticketRegistry, org.springframework.beans.factory.ObjectProvider<com.github.benmanes.caffeine.cache.Cache<String,org.apereo.cas.ticket.Ticket>> ticketCache)
  • Method Details

    • invalidateTicket

      @DeleteMapping(value="{ticketId}", produces="application/json") public org.springframework.http.ResponseEntity invalidateTicket(@PathVariable String ticketId)
      Invalidate ticket and return response entity.
      Parameters:
      ticketId - the ticket id
      Returns:
      the response entity
    • fetchTicket

      @GetMapping(value="{ticketId}", produces="application/json") public org.springframework.http.ResponseEntity fetchTicket(@PathVariable String ticketId)
      Fetch ticket and return response entity.
      Parameters:
      ticketId - the ticket id
      Returns:
      the response entity