Package org.apereo.cas.ticket.registry
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
This is
RedisTicketRegistryCacheEndpoint
.- Since:
- 7.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionRedisTicketRegistryCacheEndpoint
(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 TypeMethodDescriptionorg.springframework.http.ResponseEntity
fetchTicket
(String ticketId) Fetch ticket and return response entity.org.springframework.http.ResponseEntity
invalidateTicket
(String ticketId) Invalidate ticket and return response entity.
-
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
-