org.openmdx.security.radius.client
Class RadiusClientFactory

java.lang.Object
  extended by org.openmdx.security.radius.client.RadiusClientFactory
All Implemented Interfaces:
PoolableObjectFactory

public class RadiusClientFactory
extends Object
implements PoolableObjectFactory

Radius Client Factory


Constructor Summary
RadiusClientFactory(String[] hostNames, int[] authenticationPorts, int[] accountingPorts, String sharedSecret, long socketTimeout, boolean trace, InetAddress nasAddress)
          Constructor
 
Method Summary
 void activateObject(Object obj)
           
 void destroyObject(Object obj)
           
 Object makeObject()
           
 void passivateObject(Object obj)
           
 boolean validateObject(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadiusClientFactory

public RadiusClientFactory(String[] hostNames,
                           int[] authenticationPorts,
                           int[] accountingPorts,
                           String sharedSecret,
                           long socketTimeout,
                           boolean trace,
                           InetAddress nasAddress)
Constructor

Parameters:
hostNames - The Radius Server's Host Name
authenticationPorts - The Radius Server's Authentication Port
accountingPorts - The Radius Server's Accounting Port
sharedSecret - The Radius Protocol's Shared Secret
socketTimeout - The Radius Client's Socket Timeout
trace - defines whether the radius requests should be traced
nasAddress - the NAS IP Address; the NAS Identifier is used in case of null
Method Detail

makeObject

public Object makeObject()
                  throws Exception
Specified by:
makeObject in interface PoolableObjectFactory
Throws:
Exception

destroyObject

public void destroyObject(Object obj)
                   throws Exception
Specified by:
destroyObject in interface PoolableObjectFactory
Throws:
Exception

validateObject

public boolean validateObject(Object obj)
Specified by:
validateObject in interface PoolableObjectFactory

activateObject

public void activateObject(Object obj)
                    throws Exception
Specified by:
activateObject in interface PoolableObjectFactory
Throws:
Exception

passivateObject

public void passivateObject(Object obj)
                     throws Exception
Specified by:
passivateObject in interface PoolableObjectFactory
Throws:
Exception


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