org.openmdx.uses.net.sourceforge.jradiusclient.jaas
Class RadiusLoginHandler

java.lang.Object
  extended by org.openmdx.uses.net.sourceforge.jradiusclient.jaas.RadiusLoginHandler
All Implemented Interfaces:
CallbackHandler

public class RadiusLoginHandler
extends Object
implements CallbackHandler

Title: Description: Copyright: Copyright (c) 2003

Version:
$Revision: 1.3 $
Author:
Robert J. Loihl

Field Summary
static String JAAS_MODULE_KEY
           
 
Constructor Summary
RadiusLoginHandler(String name, String password, String clientIP, String callingStationID, String radiusHostname, String sharedSecret, int authPort, int acctPort, int retries, int timeout)
          Constructor
 
Method Summary
protected  void handle(Callback callback)
           
 void handle(Callback[] callback)
          Callback Handler for the login service
 void login()
          If this method returns the login was successfull, but if it throws an exception it failed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAAS_MODULE_KEY

public static final String JAAS_MODULE_KEY
See Also:
Constant Field Values
Constructor Detail

RadiusLoginHandler

public RadiusLoginHandler(String name,
                          String password,
                          String clientIP,
                          String callingStationID,
                          String radiusHostname,
                          String sharedSecret,
                          int authPort,
                          int acctPort,
                          int retries,
                          int timeout)
Constructor

Throws:
IllegalArgumentException - if any param is null
Method Detail

login

public void login()
           throws LoginException
If this method returns the login was successfull, but if it throws an exception it failed. There are subclasses of LoginException for the specific kinds of failures.

Throws:
LoginException

handle

public void handle(Callback[] callback)
            throws IOException,
                   UnsupportedCallbackException
Callback Handler for the login service

Specified by:
handle in interface CallbackHandler
Parameters:
javax.security.auth.callback.Callback - array of callback objects to fill in with requested data
Throws:
IOException
UnsupportedCallbackException

handle

protected void handle(Callback callback)
               throws UnsupportedCallbackException
Throws:
UnsupportedCallbackException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.