pt.ul.fc.di.nlx.lxServiceClient
Class PWCallback

java.lang.Object
  extended by pt.ul.fc.di.nlx.lxServiceClient.PWCallback
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

public class PWCallback
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler

Implements the Password CallbackHandler for the client.

This class is passed to underlying security services so that they may interact with the application in order to garantee the client authentication.

Version:
1.0 (2008-03-12)
Author:
NLX-Natural Language and Speech Group of the University of Lisbon, Department of Informatics

Constructor Summary
PWCallback()
           
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Instanciates the "handle" method from the class CallbackHandler.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PWCallback

public PWCallback()
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws javax.security.auth.callback.UnsupportedCallbackException

Instanciates the "handle" method from the class CallbackHandler.

Verifies if the username given by the client has a valid password.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
javax.security.auth.callback.UnsupportedCallbackException - if an error occurs.
See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])