@RestController(value="ticketResourceRestController")
public class TicketGrantingTicketResource
extends java.lang.Object
RestController implementation of CAS' REST API.
This class implements main CAS RESTful resource for vending/deleting TGTs and vending STs:
POST /v1/ticketsPOST /v1/tickets/{TGT-id}GET /v1/tickets/{TGT-id}DELETE /v1/tickets/{TGT-id}| Constructor and Description |
|---|
TicketGrantingTicketResource() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.http.ResponseEntity<java.lang.String> |
createResponseEntityForTicket(javax.servlet.http.HttpServletRequest request,
org.apereo.cas.ticket.TicketGrantingTicket tgtId)
Create response entity for ticket response entity.
|
org.springframework.http.ResponseEntity<java.lang.String> |
createTicketGrantingTicket(org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody,
javax.servlet.http.HttpServletRequest request)
Create new ticket granting ticket.
|
protected org.apereo.cas.ticket.TicketGrantingTicket |
createTicketGrantingTicketForRequest(org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody,
javax.servlet.http.HttpServletRequest request)
Create ticket granting ticket for request ticket granting ticket.
|
org.springframework.http.ResponseEntity<java.lang.String> |
deleteTicketGrantingTicket(java.lang.String tgtId)
Destroy ticket granting ticket.
|
@PostMapping(value="/v1/tickets",
consumes="application/x-www-form-urlencoded")
public org.springframework.http.ResponseEntity<java.lang.String> createTicketGrantingTicket(@RequestBody(required=false)
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody,
javax.servlet.http.HttpServletRequest request)
requestBody - username and password application/x-www-form-urlencoded valuesrequest - raw HttpServletRequest used to call this method@DeleteMapping(value="/v1/tickets/{tgtId:.+}")
public org.springframework.http.ResponseEntity<java.lang.String> deleteTicketGrantingTicket(@PathVariable(value="tgtId")
java.lang.String tgtId)
tgtId - ticket granting ticket id URI path paramResponseEntity representing RESTful response. Signals
HttpStatus.OK when successful.protected org.springframework.http.ResponseEntity<java.lang.String> createResponseEntityForTicket(javax.servlet.http.HttpServletRequest request,
org.apereo.cas.ticket.TicketGrantingTicket tgtId)
throws java.lang.Exception
request - the requesttgtId - the tgt idjava.lang.Exception - the exceptionprotected org.apereo.cas.ticket.TicketGrantingTicket createTicketGrantingTicketForRequest(org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody,
javax.servlet.http.HttpServletRequest request)
requestBody - the request bodyrequest - the request