Class ServiceTicketResponse

  • Direct Known Subclasses:
    TicketValidationRequest

    public class ServiceTicketResponse
    extends Object
    CAS protocol response message for a successfully granted service ticket.
    • Field Detail

      • serviceURL

        @Nonnull
        private final String serviceURL
        Service URL.
      • serviceTicket

        @Nonnull
        private final String serviceTicket
        Granted service ticket.
      • saml

        private boolean saml
        Flag indicating whether ticket request is via SAML 1.1 protocol.
    • Constructor Detail

      • ServiceTicketResponse

        public ServiceTicketResponse​(@Nonnull
                                     String service,
                                     @Nonnull
                                     String ticket)
        Creates a CAS service ticket response message for a service and granted ticket.
        Parameters:
        service - Service that requested ticket.
        ticket - Granted service ticket.
    • 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