public class MSUtils
extends java.lang.Object
Constructor and Description |
---|
MSUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addMppeKeys(RadiusAttributeSet request,
RadiusAttributeSet response,
byte[] sendKey,
byte[] receiveKey,
byte[] secret,
byte[] authenticator,
boolean addTypesAndPolicy) |
static byte[] |
checkMSChapV2Password(byte[] challenge,
byte[] peerChallenge,
byte[] ntResponse,
java.lang.String userName,
java.lang.String userPassword,
java.lang.String welcome) |
static boolean |
checkMSChapV2Password(RadiusAttributeSet request,
RadiusAttributeSet response,
java.lang.String openPassword,
byte[] secret,
byte[] authenticator,
boolean addTypesAndPolicy) |
static boolean |
checkMSChapV2Password(RadiusAttributeSet request,
RadiusAttributeSet response,
java.lang.String openPassword,
byte[] secret,
byte[] authenticator,
boolean addTypesAndPolicy,
boolean ident) |
static byte[] |
cryptMppeKey(byte[] key,
byte[] secret,
byte[] requestAuth) |
static byte[] |
mppeKey(byte[] masterKey,
boolean isSend,
byte[] requestAuth,
byte[] secret) |
static byte[] |
mppeKey(byte[] masterKey,
int startKeyLen,
boolean isSend,
boolean isServer) |
public static final int MS_chap_response
public static final int MS_chap_error
public static final int MS_chap_cpw_1
public static final int MS_chap_cpw_2
public static final int MS_chap_lm_enc_pw
public static final int MS_chap_nt_enc_pw
public static final int MS_mppe_encryption_policy
public static final int MS_mppe_encryption_types
public static final int MS_ras_vendor
public static final int MS_chap_domain
public static final int MS_chap_challenge
public static final int MS_chap_mppe_keys
public static final int MS_bap_usage
public static final int MS_link_utilization_threshold
public static final int MS_link_drop_time_limit
public static final int MS_mppe_send_key
public static final int MS_mppe_recv_key
public static final int MS_old_arap_password
public static final int MS_ras_version
public static final int MS_new_arap_password
public static final int MS_arap_password_change_reason
public static final int MS_filter
public static final int MS_acct_auth_type
public static final int MS_acct_eap_type
public static final int MS_chap2_response
public static final int MS_chap2_success
public static final int MS_chap2_cpw
public static final int MS_primary_dns_server
public static final int MS_secondary_dns_server
public static final int MS_primary_nbns_server
public static final int MS_secondary_nbns_server
public static final int MS_arap_challenge
public static final int MS_framed_encryption_type
public static void addMppeKeys(RadiusAttributeSet request, RadiusAttributeSet response, byte[] sendKey, byte[] receiveKey, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static byte[] mppeKey(byte[] masterKey, int startKeyLen, boolean isSend, boolean isServer)
public static byte[] mppeKey(byte[] masterKey, boolean isSend, byte[] requestAuth, byte[] secret)
public static final byte[] cryptMppeKey(byte[] key, byte[] secret, byte[] requestAuth)
public static byte[] checkMSChapV2Password(byte[] challenge, byte[] peerChallenge, byte[] ntResponse, java.lang.String userName, java.lang.String userPassword, java.lang.String welcome) throws java.io.UnsupportedEncodingException, java.lang.Exception
java.io.UnsupportedEncodingException
java.lang.Exception
public static boolean checkMSChapV2Password(RadiusAttributeSet request, RadiusAttributeSet response, java.lang.String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy)
public static boolean checkMSChapV2Password(RadiusAttributeSet request, RadiusAttributeSet response, java.lang.String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy, boolean ident)