1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.acegisecurity.providers.cas;
17
18 import org.acegisecurity.AuthenticationException;
19
20
21 /***
22 * Validates a CAS service ticket.
23 *
24 * <P>
25 * Implementations must accept CAS proxy tickets, in addition to CAS service
26 * tickets. If proxy tickets should be rejected, this is resolved by a {@link
27 * CasProxyDecider} implementation (not by the <code>TicketValidator</code>).
28 * </p>
29 *
30 * <P>
31 * Implementations may request a proxy granting ticket if wish, although this
32 * behaviour is not mandatory.
33 * </p>
34 *
35 * @author Ben Alex
36 * @version $Id: TicketValidator.java,v 1.2 2005/11/17 00:55:47 benalex Exp $
37 */
38 public interface TicketValidator {
39
40
41 /***
42 * Returns information about the ticket, if it is valid for this service.
43 *
44 * <P>
45 * Must throw an <code>AuthenticationException</code> if the ticket is not
46 * valid for this service.
47 * </p>
48 *
49 * @return details of the CAS service ticket
50 */
51 public TicketResponse confirmTicketValid(String serviceTicket)
52 throws AuthenticationException;
53 }