JCas
v0.3.1

cas
Class ConnectionThread.JCasJaasCallbackHandler

java.lang.Object
  extended bycas.ConnectionThread.JCasJaasCallbackHandler
All Implemented Interfaces:
CallbackHandler
Enclosing class:
ConnectionThread

public static class ConnectionThread.JCasJaasCallbackHandler
extends Object
implements CallbackHandler

The callback handler for JAAS authentication.


Constructor Summary
ConnectionThread.JCasJaasCallbackHandler(String uid, String pwd)
          Creates the handler.
 
Method Summary
 void handle(Callback[] callbacks)
          Returns the user name and password provided.
 void setPWD(String pwd)
          Sets the PWD for another call.
 void setUID(String uid)
          Sets the UID for another call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionThread.JCasJaasCallbackHandler

public ConnectionThread.JCasJaasCallbackHandler(String uid,
                                                String pwd)
Creates the handler.

Method Detail

setUID

public void setUID(String uid)
Sets the UID for another call.


setPWD

public void setPWD(String pwd)
Sets the PWD for another call.


handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Returns the user name and password provided. Text messages are ignored.

Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException

JCas
v0.3.1