AXL RADIUS Server API V3

com.theorem.radserver3
Class MPPE

Object
  extended byMPPE

public final class MPPE
extends Object

Class to access Microsoft Point-to-Point Encryption Protocol (MPPE) information.

Client Information

The client should check the result of the methods hasV1Keys() and / or hasV2Keys() to determine which keys are present. If there are errors extracting the keys both methods will return false. Errors might include the absence of the Microsoft Vendor-Specific attributes or absence of the sub-attributes (see below) in the response attributes or malformed keys.

The client looks for the following Microsoft Vendor-Specific attributes:

The server creates the MSCHAP and MSCHAPV2 keys and policy attributes.


Method Summary
 byte[] getEncryptionPolicy()
          Get the encryption policy value.
 byte[] getMPPEKeys()
          Get the MSCHAP V1 keys (LM & NT).
 byte[] getNTKey()
          Get the MSCHAP V1 key for the NT (NT key).
 byte[] getReceiveKey()
          Get the MSCHAP V2 receive key.
 byte[] getSendKey()
          Get the MSCHAP V2 send key.
 boolean hasV1Keys()
          Deterimine if we have MSCHAP MPPE keys.
 boolean hasV2Keys()
          Deterimine if we have MSCHAP V2 MPPE keys.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEncryptionPolicy

public byte[] getEncryptionPolicy()
Get the encryption policy value.

Returns:
The MPPE policy bytes or null if none exist.

getMPPEKeys

public byte[] getMPPEKeys()
Get the MSCHAP V1 keys (LM & NT).

Returns:
NT keys. Returns null if there are no NT keys. (LM only keys will also result in a null as they are no longer supported by Microsoft. The NT key is a16 byte array.
See Also:
getNTKey()

getNTKey

public byte[] getNTKey()
Get the MSCHAP V1 key for the NT (NT key).

Returns:
NT key, or null if not present.

getReceiveKey

public byte[] getReceiveKey()
Get the MSCHAP V2 receive key.

Returns:
Receive key or null if it doesn't exist.

getSendKey

public byte[] getSendKey()
Get the MSCHAP V2 send key.

Returns:
Send key or null if it doesn't exist.

hasV1Keys

public boolean hasV1Keys()
Deterimine if we have MSCHAP MPPE keys.

Returns:
true if we have MSCHAP keys.

hasV2Keys

public boolean hasV2Keys()
Deterimine if we have MSCHAP V2 MPPE keys.

Returns:
true if we have MSCHAP V2 keys.

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.