gnu.inet.util
Class SaslCallbackHandler

java.lang.Object
  extended by gnu.inet.util.SaslCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

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

A callback handler that can manage username and password callbacks.

Author:
Chris Burdess

Constructor Summary
SaslCallbackHandler(java.lang.String username, java.lang.String password)
          Constructor.
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Handle callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaslCallbackHandler

public SaslCallbackHandler(java.lang.String username,
                           java.lang.String password)
Constructor.

Parameters:
username - the value to respond to Name callbacks with
password - the value to respond to Password callbacks with
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Handle callbacks.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException


© Copyright 2003 The Free Software Foundation, all rights reserved