RADIUS Client API (V3)

com.theorem.radius3.auth.digest.client
Class ClientDigest

Object
  extended byClientDigest

public class ClientDigest
extends Object

RADIUS Digest Authentication system for the client as defined in draft-sterman-aaa-sip-00.txt for SIP and HTTP.

Since:
Server 4.0

Constructor Summary
ClientDigest(RADIUSClient rc, AttributeList commonList)
          Constructor.
 
Method Summary
 int authenticate()
          Perform the authentication.
 void reset()
          Reset authentication.
 void set(int tag, String value)
          Set the value by numeric draft-sterman-aaa-sip-00.txt sub-attribute values.
 void setAlgorithm(String digestAlgorithm)
           
 void setBodyDigest(String bodyDigest)
           
 void setDigestQop(String digestQop, String cNonce, String nonceCount)
           
 void setMethod(String digestMethod)
           
 void setNonce(String digestNonce)
           
 void setRealm(String digestRealm)
           
 void setResponse(String digestResponse)
           
 void setURI(String digestURI)
           
 void setUserName(String digestUsername)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientDigest

public ClientDigest(RADIUSClient rc,
                    AttributeList commonList)
Constructor.

Parameters:
rc - RADIUSClient.
commonList - Attributes to be sent with each request.
Method Detail

reset

public void reset()
           throws SocketException
Reset authentication. Performs a reset if we must abandon this attempt. All values are cleared.

Throws:
SocketException

set

public void set(int tag,
                String value)
Set the value by numeric draft-sterman-aaa-sip-00.txt sub-attribute values.
 1      Realm
 2      Nonce
 3      Method
 4      URI
 5      QOP
 6      Algorithm
 7      Body-Digest
 8      CNonce
 9      Nonce-Count
 10     User-Name
 

Parameters:
tag - Sub-attribute tag number. If the tag number is outside the limits of 1 to 10 it is ignored.
value - Value.

setRealm

public void setRealm(String digestRealm)

setNonce

public void setNonce(String digestNonce)

setMethod

public void setMethod(String digestMethod)

setURI

public void setURI(String digestURI)

setDigestQop

public void setDigestQop(String digestQop,
                         String cNonce,
                         String nonceCount)

setAlgorithm

public void setAlgorithm(String digestAlgorithm)

setBodyDigest

public void setBodyDigest(String bodyDigest)

setUserName

public void setUserName(String digestUsername)

setResponse

public void setResponse(String digestResponse)

authenticate

public int authenticate()
                 throws RADIUSException,
                        ClientSendException,
                        ClientReceiveException
Perform the authentication.

Returns:
The packet type received from the server. This must be Access-Accept for the authentication to be successful.
Throws:
RADIUSException - if the packet verification failed.
ClientSendException - if the packet could not be sent..
ClientReceiveException - if the response was not received in time.

RADIUS Client API (V3)

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.