net.sf.jradius.util
Class MSCHAP
java.lang.Object
net.sf.jradius.util.MSCHAP
public final class MSCHAP
- extends java.lang.Object
MSCHAP implementation translated into Java from the original
pseudocode can be found in RFC 2759 and 2433.
- Author:
- David Bird
Method Summary |
static void |
DesHash(byte[] key,
int offsetKey,
byte[] Cypher,
int offsetCypher)
|
static byte[] |
doMSCHAPv1(byte[] Password,
byte[] AuthChallenge)
Do MSCHAPv1 (supports using NT Password) |
static byte[] |
doMSCHAPv2(byte[] UserName,
byte[] Password,
byte[] AuthChallenge)
Do MSCHAPv2 |
static byte[] |
LmChallengeResponse(byte[] Challenge,
byte[] Password)
|
static byte[] |
LmPasswordHash(byte[] Password)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSCHAP
public MSCHAP()
DesHash
public static void DesHash(byte[] key,
int offsetKey,
byte[] Cypher,
int offsetCypher)
LmPasswordHash
public static byte[] LmPasswordHash(byte[] Password)
LmChallengeResponse
public static byte[] LmChallengeResponse(byte[] Challenge,
byte[] Password)
doMSCHAPv1
public static byte[] doMSCHAPv1(byte[] Password,
byte[] AuthChallenge)
- Do MSCHAPv1 (supports using NT Password)
- Parameters:
Password
- The User's Password value in bytesAuthChallenge
- The 16 byte authentication challenge
- Returns:
- Returns a 50 byte array - the MSCHAP Response
doMSCHAPv2
public static byte[] doMSCHAPv2(byte[] UserName,
byte[] Password,
byte[] AuthChallenge)
- Do MSCHAPv2
- Parameters:
UserName
- The User-Name attribute value bytesPassword
- The User's Password value in bytesAuthChallenge
- The 16 byte authentication challenge
- Returns:
- Returns a 50 byte array - the MSCHAPv2 Response
Copyright © 2006 The JRadius Project, All Rights Reserved.