edu.yale.its.tp.cas.servlet
Class ServiceValidate
java.lang.Object
|
+--HttpServlet
|
+--edu.yale.its.tp.cas.servlet.ServiceValidate
- Direct Known Subclasses:
- ProxyValidate
- public class ServiceValidate
- extends HttpServlet
Handles ST validation and PGT acquisition.
- See Also:
- Serialized Form
Field Summary |
protected edu.yale.its.tp.cas.ticket.GrantorCache |
pgtCache
|
protected edu.yale.its.tp.cas.ticket.ServiceTicketCache |
stCache
|
Method Summary |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
|
void |
init(ServletConfig config)
|
static boolean |
validateDn(java.lang.String dn,
java.lang.String expectedServer)
Returns true if the DN is appropriate for the expected server,
false otherwise. |
protected static void |
validationFailure(java.io.PrintWriter out,
java.lang.String code,
java.lang.String errorMessage)
Sends a validation failure message to the given PrintWriter. |
protected void |
validationSuccess(java.io.PrintWriter out,
edu.yale.its.tp.cas.ticket.ServiceTicket st,
java.lang.String pgtIOU)
Sends a validation success message to the given PrintWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stCache
protected edu.yale.its.tp.cas.ticket.ServiceTicketCache stCache
pgtCache
protected edu.yale.its.tp.cas.ticket.GrantorCache pgtCache
ServiceValidate
public ServiceValidate()
init
public void init(ServletConfig config)
throws ServletException
ServletException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException,
ServletException
java.io.IOException
ServletException
validationFailure
protected static void validationFailure(java.io.PrintWriter out,
java.lang.String code,
java.lang.String errorMessage)
throws java.io.IOException
- Sends a validation failure message to the given PrintWriter.
java.io.IOException
validationSuccess
protected void validationSuccess(java.io.PrintWriter out,
edu.yale.its.tp.cas.ticket.ServiceTicket st,
java.lang.String pgtIOU)
- Sends a validation success message to the given PrintWriter.
validateDn
public static boolean validateDn(java.lang.String dn,
java.lang.String expectedServer)
- Returns true if the DN is appropriate for the expected server,
false otherwise.