net.sourceforge.jradiusclient.jaas
Class RadiusLoginHandler

java.lang.Object
  |
  +--net.sourceforge.jradiusclient.jaas.RadiusLoginHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

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

Title: Description: Copyright: Copyright (c) 2003

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

Field Summary
static java.lang.String JAAS_MODULE_KEY
           
 
Constructor Summary
RadiusLoginHandler(java.lang.String name, java.lang.String password, java.lang.String clientIP, java.lang.String callingStationID, java.lang.String radiusHostname, java.lang.String sharedSecret, int authPort, int acctPort, int retries, int timeout)
          Constructor
 
Method Summary
protected  void handle(javax.security.auth.callback.Callback callback)
           
 void handle(javax.security.auth.callback.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 java.lang.String JAAS_MODULE_KEY
See Also:
Constant Field Values
Constructor Detail

RadiusLoginHandler

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

Throws:
java.lang.IllegalArgumentException - if any param is null
Method Detail

login

public void login()
           throws javax.security.auth.login.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.

javax.security.auth.login.LoginException

handle

public void handle(javax.security.auth.callback.Callback[] callback)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Callback Handler for the login service

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

handle

protected void handle(javax.security.auth.callback.Callback callback)
               throws javax.security.auth.callback.UnsupportedCallbackException
javax.security.auth.callback.UnsupportedCallbackException