org.jasig.cas.client.jaas
Class ServiceAndTicketCallbackHandler

java.lang.Object
  extended by org.jasig.cas.client.jaas.ServiceAndTicketCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class ServiceAndTicketCallbackHandler
extends Object
implements CallbackHandler

Callback handler that provides the CAS service and ticket to a NameCallback and PasswordCallback respectively, which meets the requirements of the CasLoginModule JAAS module.

Since:
3.1.11
Version:
$Revision: 22086 $
Author:
Marvin S. Addison

Constructor Summary
ServiceAndTicketCallbackHandler(String service, String ticket)
          Creates a new instance with the given service and ticket.
 
Method Summary
 void handle(Callback[] callbacks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceAndTicketCallbackHandler

public ServiceAndTicketCallbackHandler(String service,
                                       String ticket)
Creates a new instance with the given service and ticket.

Parameters:
service - CAS service URL.
ticket - CAS service ticket.
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException


Copyright © 2006-2011 Jasig. All Rights Reserved.