com.netscape.cmsutil.radius
Class RadiusConn

java.lang.Object
  extended by com.netscape.cmsutil.radius.RadiusConn

public class RadiusConn
extends java.lang.Object

This class implements RFC2865 - Remote Authentication Dial In User Service (RADIUS), June 2000.


Field Summary
static int DEFAULT_PORT
           
static int DEFAULT_TIMEOUT
           
static int MAX_RETRIES
           
static int OFFICAL_PORT
           
static java.lang.String OPTION_DEBUG
           
 
Constructor Summary
RadiusConn(java.lang.String host, int port, java.lang.String secret, byte[] seed, java.util.Properties options)
           
RadiusConn(java.lang.String host1, int port1, java.lang.String host2, int port2, java.lang.String secret, int timeout, byte[] seed, java.util.Properties options)
           
RadiusConn(java.lang.String host1, java.lang.String host2, int port, java.lang.String secret, int timeout)
           
 
Method Summary
 void authenticate(java.lang.String name, java.lang.String password)
           
 void disconnect()
           
 void replyChallenge(java.lang.String password, ChallengeException ce)
           
 void replyChallenge(java.lang.String name, java.lang.String password, ChallengeException ce)
           
 void replyChallenge(java.lang.String name, java.lang.String password, java.lang.String state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_RETRIES

public static int MAX_RETRIES

OFFICAL_PORT

public static int OFFICAL_PORT

DEFAULT_PORT

public static int DEFAULT_PORT

DEFAULT_TIMEOUT

public static int DEFAULT_TIMEOUT

OPTION_DEBUG

public static java.lang.String OPTION_DEBUG
Constructor Detail

RadiusConn

public RadiusConn(java.lang.String host1,
                  java.lang.String host2,
                  int port,
                  java.lang.String secret,
                  int timeout)
           throws java.net.SocketException
Throws:
java.net.SocketException

RadiusConn

public RadiusConn(java.lang.String host,
                  int port,
                  java.lang.String secret,
                  byte[] seed,
                  java.util.Properties options)
           throws java.net.SocketException
Throws:
java.net.SocketException

RadiusConn

public RadiusConn(java.lang.String host1,
                  int port1,
                  java.lang.String host2,
                  int port2,
                  java.lang.String secret,
                  int timeout,
                  byte[] seed,
                  java.util.Properties options)
           throws java.net.SocketException
Throws:
java.net.SocketException
Method Detail

disconnect

public void disconnect()
                throws java.io.IOException
Throws:
java.io.IOException

authenticate

public void authenticate(java.lang.String name,
                         java.lang.String password)
                  throws java.io.IOException,
                         java.security.NoSuchAlgorithmException,
                         RejectException,
                         ChallengeException
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
RejectException
ChallengeException

replyChallenge

public void replyChallenge(java.lang.String password,
                           ChallengeException ce)
                    throws java.io.IOException,
                           java.security.NoSuchAlgorithmException,
                           RejectException,
                           ChallengeException
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
RejectException
ChallengeException

replyChallenge

public void replyChallenge(java.lang.String name,
                           java.lang.String password,
                           ChallengeException ce)
                    throws java.io.IOException,
                           java.security.NoSuchAlgorithmException,
                           RejectException,
                           ChallengeException
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
RejectException
ChallengeException

replyChallenge

public void replyChallenge(java.lang.String name,
                           java.lang.String password,
                           java.lang.String state)
                    throws java.io.IOException,
                           java.security.NoSuchAlgorithmException,
                           RejectException,
                           ChallengeException
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
RejectException
ChallengeException