org.kuali.rice.ksb.messaging.servicehandlers
Class BasicAuthenticationHandler

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.servicehandlers.BasicAuthenticationHandler
All Implemented Interfaces:
CallbackHandler

public class BasicAuthenticationHandler
extends Object
implements CallbackHandler

CallbackHandler that verifies the password and username is correct for a service secured with basic authentication.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
BasicAuthenticationHandler(String serviceNameSpaceURI, QName serviceName)
          Initialize the BasicAuthenticationHandler with the serviceNameSpaceURI and localServiceName
 
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

BasicAuthenticationHandler

public BasicAuthenticationHandler(String serviceNameSpaceURI,
                                  QName serviceName)
Initialize the BasicAuthenticationHandler with the serviceNameSpaceURI and localServiceName

Parameters:
serviceNameSpaceURI - the serviceNameSpaceURI to use
serviceName - the serviceName to use
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Specified by:
handle in interface CallbackHandler
Parameters:
callbacks - an array of Callback objects
Throws:
RiceRuntimeException - if the username or password is invalid
IOException
UnsupportedCallbackException
See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.