net.sf.jradius.util
Class CHAP

java.lang.Object
  extended by net.sf.jradius.util.CHAP

public final class CHAP
extends java.lang.Object

CHAP Utils.

Author:
David Bird

Constructor Summary
CHAP()
           
 
Method Summary
static byte[] chapMD5(byte id, byte[] Password, byte[] Challenge)
           
static byte[] chapResponse(byte id, byte[] Password, byte[] Challenge)
          Do CHAP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CHAP

public CHAP()
Method Detail

chapMD5

public static byte[] chapMD5(byte id,
                             byte[] Password,
                             byte[] Challenge)
Parameters:
id - The packet identifier
Password - The User's Password value in bytes
Challenge - The 16 byte authentication challenge
Returns:
Returns the CHAP-Password

chapResponse

public static byte[] chapResponse(byte id,
                                  byte[] Password,
                                  byte[] Challenge)
Do CHAP

Parameters:
id - The packet identifier
Password - The User's Password value in bytes
Challenge - The 16 byte authentication challenge
Returns:
Returns the CHAP-Password


Copyright © 2006 The JRadius Project, All Rights Reserved.