org.jasig.cas.client.validation
Interface TicketValidator

All Known Implementing Classes:
AbstractCasProtocolUrlBasedTicketValidator, AbstractUrlBasedTicketValidator, Cas10TicketValidator, Cas20ProxyTicketValidator, Cas20ServiceTicketValidator, Saml11TicketValidator

public interface TicketValidator

Contract for a validator that will confirm the validity of a supplied ticket.

Validator makes no statement about how to validate the ticket or the format of the ticket (other than that it must be a String).

Since:
3.1
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Method Summary
 Assertion validate(java.lang.String ticket, java.lang.String service)
          Attempts to validate a ticket for the provided service.
 

Method Detail

validate

Assertion validate(java.lang.String ticket,
                   java.lang.String service)
                   throws TicketValidationException
Attempts to validate a ticket for the provided service.

Parameters:
ticket - the ticket to attempt to validate.
service - the service this ticket is valid for.
Returns:
an assertion from the ticket.
Throws:
TicketValidationException - if the ticket cannot be validated.


Copyright © 2006-2009 JA-SIG. All Rights Reserved.