Package org.apereo.cas.rest.factory
Class CasProtocolServiceTicketResourceEntityResponseFactory
- java.lang.Object
-
- org.apereo.cas.rest.factory.CasProtocolServiceTicketResourceEntityResponseFactory
-
- All Implemented Interfaces:
ServiceTicketResourceEntityResponseFactory,org.springframework.core.Ordered
public class CasProtocolServiceTicketResourceEntityResponseFactory extends java.lang.Object implements ServiceTicketResourceEntityResponseFactory
- Since:
- 5.2.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apereo.cas.CentralAuthenticationServicecentralAuthenticationServiceThe central authentication service implementation.
-
Constructor Summary
Constructors Constructor Description CasProtocolServiceTicketResourceEntityResponseFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.String>build(java.lang.String ticketGrantingTicket, org.apereo.cas.authentication.principal.WebApplicationService webApplicationService, org.apereo.cas.authentication.AuthenticationResult authenticationResult)Build response response entity.intgetOrder()protected java.lang.StringgrantServiceTicket(java.lang.String ticketGrantingTicket, org.apereo.cas.authentication.principal.WebApplicationService service, org.apereo.cas.authentication.AuthenticationResult authenticationResult)Grant service ticket service ticket.booleansupports(org.apereo.cas.authentication.principal.WebApplicationService service, org.apereo.cas.authentication.AuthenticationResult authenticationResult)Supports boolean.
-
-
-
Method Detail
-
build
public org.springframework.http.ResponseEntity<java.lang.String> build(java.lang.String ticketGrantingTicket, org.apereo.cas.authentication.principal.WebApplicationService webApplicationService, org.apereo.cas.authentication.AuthenticationResult authenticationResult)Description copied from interface:ServiceTicketResourceEntityResponseFactoryBuild response response entity.- Specified by:
buildin interfaceServiceTicketResourceEntityResponseFactory- Parameters:
ticketGrantingTicket- the ticket granting ticketwebApplicationService- the serviceauthenticationResult- the authentication result- Returns:
- the response entity
-
grantServiceTicket
protected java.lang.String grantServiceTicket(java.lang.String ticketGrantingTicket, org.apereo.cas.authentication.principal.WebApplicationService service, org.apereo.cas.authentication.AuthenticationResult authenticationResult)Grant service ticket service ticket.- Parameters:
ticketGrantingTicket- the ticket granting ticketservice- the serviceauthenticationResult- the authentication result- Returns:
- the service ticket
-
supports
public boolean supports(org.apereo.cas.authentication.principal.WebApplicationService service, org.apereo.cas.authentication.AuthenticationResult authenticationResult)Description copied from interface:ServiceTicketResourceEntityResponseFactorySupports boolean.- Specified by:
supportsin interfaceServiceTicketResourceEntityResponseFactory- Parameters:
service- the serviceauthenticationResult- the authentication result- Returns:
- true/false
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-