Package net.shibboleth.idp.cas.protocol
Class ServiceTicketResponse
- java.lang.Object
-
- net.shibboleth.idp.cas.protocol.ServiceTicketResponse
-
- Direct Known Subclasses:
TicketValidationRequest
public class ServiceTicketResponse extends Object
CAS protocol response message for a successfully granted service ticket.
-
-
Field Summary
Fields Modifier and Type Field Description private booleansamlFlag indicating whether ticket request is via SAML 1.1 protocol.private StringserviceTicketGranted service ticket.private StringserviceURLService URL.
-
Constructor Summary
Constructors Constructor Description ServiceTicketResponse(String service, String ticket)Creates a CAS service ticket response message for a service and granted ticket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRedirectUrl()Get the URL that may be used to redirect to a service with a granted ticket.StringgetService()Get the service that requested the ticket.StringgetTicket()Get the service that requested the ticket.StringgetTicketParameterName()Get the name of the ticket parameter returned to the requesting service.booleanisSaml()Get whether ticket request is via SAML 1.1 protocol.voidsetSaml(boolean flag)Set whether ticket request is via SAML 1.1 protocol.
-
-
-
Method Detail
-
getService
@Nonnull public String getService()
Get the service that requested the ticket.- Returns:
- service that requested the ticket
-
getTicket
@Nonnull public String getTicket()
Get the service that requested the ticket.- Returns:
- the service that requested the ticket
-
isSaml
public boolean isSaml()
Get whether ticket request is via SAML 1.1 protocol.- Returns:
- whether ticket request is via SAML 1.1 protocol
-
setSaml
public void setSaml(boolean flag)
Set whether ticket request is via SAML 1.1 protocol.- Parameters:
flag- flag to set
-
getTicketParameterName
public String getTicketParameterName()
Get the name of the ticket parameter returned to the requesting service.- Returns:
- the name of the ticket parameter returned to the requesting service
-
getRedirectUrl
public String getRedirectUrl()
Get the URL that may be used to redirect to a service with a granted ticket.- Returns:
- URL that may be used to redirect to a service with a granted ticket
-
-