AXL RADIUS Server API V3

com.theorem.radserver3.auth.digest.server
Class DigestAuthentication

Object
  extended byDigestAuthentication

public class DigestAuthentication
extends Object

RADIUS Digest Authentication system for the server according to draft-sterman-aaa-sip-00.txt for SIP and HTTP.

Typical server usage:

 DigestAuthentication das = new DigestAuthentication(auth);

 // Do some checking of the properties if you like.
 Properties digestProps = das.getProperties();
 String method = digestProps.getProperty("Method", "");
 if (method.equals("INVITE"))
	auth.getRADIUSServer().debugLog("Found an INVITE");

 // Authenticate.
 result = das.process(passwordBytes);
 // If the result is PacketType.Access_Accept the
 //  digest authentication succeeded.
 

Since:
Server 4.0

Constructor Summary
DigestAuthentication(AuthInfo auth)
          Constructor for digest authentication for draft-sterman-aaa-sip-00.txt.
 
Method Summary
 Properties getProperties()
          Get the request properties.
 void haveHA1(boolean enableHA1)
          Process the digest authentication request using the given H(A1) field instead of a password.
 boolean process(byte[] password)
          Process the digest authentication request.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestAuthentication

public DigestAuthentication(AuthInfo auth)
                     throws RADIUSException
Constructor for digest authentication for draft-sterman-aaa-sip-00.txt.

Parameters:
auth - Authentication information.
Method Detail

getProperties

public Properties getProperties()
Get the request properties. These may include some or all of "Realm", "Nonce", "Method", "URI", "QOP", "Algorithm", "Body-Digest", "CNonce", "Nonce-Count", and "User-Name".

Returns:
the authentication digest parameters as a set of Properties.

haveHA1

public void haveHA1(boolean enableHA1)
Process the digest authentication request using the given H(A1) field instead of a password.


process

public boolean process(byte[] password)
Process the digest authentication request.

Parameters:
password - Password fof HA1 value for the authentication.
Returns:
True if the authentication succeeded.
See Also:
if using the HA1 hash.

AXL RADIUS Server 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.