Package net.shibboleth.idp.cas.protocol
Class ServiceTicketResponse
java.lang.Object
net.shibboleth.idp.cas.protocol.ServiceTicketResponse
- Direct Known Subclasses:
TicketValidationRequest
CAS protocol response message for a successfully granted service ticket.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServiceTicketResponse
(String service, String ticket) Creates a CAS service ticket response message for a service and granted ticket. -
Method Summary
Modifier and TypeMethodDescriptionGet the URL that may be used to redirect to a service with a granted ticket.Get the service that requested the ticket.Get the service that requested the ticket.Get the name of the ticket parameter returned to the requesting service.boolean
isSaml()
Get whether ticket request is via SAML 1.1 protocol.void
setSaml
(boolean flag) Set whether ticket request is via SAML 1.1 protocol.
-
Field Details
-
serviceURL
Service URL. -
serviceTicket
Granted service ticket. -
saml
private boolean samlFlag indicating whether ticket request is via SAML 1.1 protocol.
-
-
Constructor Details
-
ServiceTicketResponse
Creates a CAS service ticket response message for a service and granted ticket.- Parameters:
service
- Service that requested ticket.ticket
- Granted service ticket.
-
-
Method Details
-
getService
Get the service that requested the ticket.- Returns:
- service that requested the ticket
-
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
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
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
-