Class MSUtils
java.lang.Object
ru.bitel.bgbilling.kernel.network.radius.MSUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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, String userName, String userPassword, String welcome) static boolean
checkMSChapV2Password
(RadiusAttributeSet request, RadiusAttributeSet response, String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy) static boolean
checkMSChapV2Password
(RadiusAttributeSet request, RadiusAttributeSet response, String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy, boolean ident) static final 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)
-
Field Details
-
MS_chap_response
public static final int MS_chap_response- See Also:
-
MS_chap_error
public static final int MS_chap_error- See Also:
-
MS_chap_cpw_1
public static final int MS_chap_cpw_1- See Also:
-
MS_chap_cpw_2
public static final int MS_chap_cpw_2- See Also:
-
MS_chap_lm_enc_pw
public static final int MS_chap_lm_enc_pw- See Also:
-
MS_chap_nt_enc_pw
public static final int MS_chap_nt_enc_pw- See Also:
-
MS_mppe_encryption_policy
public static final int MS_mppe_encryption_policy- See Also:
-
MS_mppe_encryption_types
public static final int MS_mppe_encryption_types- See Also:
-
MS_ras_vendor
public static final int MS_ras_vendor- See Also:
-
MS_chap_domain
public static final int MS_chap_domain- See Also:
-
MS_chap_challenge
public static final int MS_chap_challenge- See Also:
-
MS_chap_mppe_keys
public static final int MS_chap_mppe_keys- See Also:
-
MS_bap_usage
public static final int MS_bap_usage- See Also:
-
MS_link_utilization_threshold
public static final int MS_link_utilization_threshold- See Also:
-
MS_link_drop_time_limit
public static final int MS_link_drop_time_limit- See Also:
-
MS_mppe_send_key
public static final int MS_mppe_send_key- See Also:
-
MS_mppe_recv_key
public static final int MS_mppe_recv_key- See Also:
-
MS_old_arap_password
public static final int MS_old_arap_password- See Also:
-
MS_ras_version
public static final int MS_ras_version- See Also:
-
MS_new_arap_password
public static final int MS_new_arap_password- See Also:
-
MS_arap_password_change_reason
public static final int MS_arap_password_change_reason- See Also:
-
MS_filter
public static final int MS_filter- See Also:
-
MS_acct_auth_type
public static final int MS_acct_auth_type- See Also:
-
MS_acct_eap_type
public static final int MS_acct_eap_type- See Also:
-
MS_chap2_response
public static final int MS_chap2_response- See Also:
-
MS_chap2_success
public static final int MS_chap2_success- See Also:
-
MS_chap2_cpw
public static final int MS_chap2_cpw- See Also:
-
MS_primary_dns_server
public static final int MS_primary_dns_server- See Also:
-
MS_secondary_dns_server
public static final int MS_secondary_dns_server- See Also:
-
MS_primary_nbns_server
public static final int MS_primary_nbns_server- See Also:
-
MS_secondary_nbns_server
public static final int MS_secondary_nbns_server- See Also:
-
MS_arap_challenge
public static final int MS_arap_challenge- See Also:
-
MS_framed_encryption_type
public static final int MS_framed_encryption_type- See Also:
-
-
Constructor Details
-
MSUtils
public MSUtils()
-
-
Method Details
-
addMppeKeys
public static void addMppeKeys(RadiusAttributeSet request, RadiusAttributeSet response, byte[] sendKey, byte[] receiveKey, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-
mppeKey
public static byte[] mppeKey(byte[] masterKey, int startKeyLen, boolean isSend, boolean isServer) -
mppeKey
public static byte[] mppeKey(byte[] masterKey, boolean isSend, byte[] requestAuth, byte[] secret) -
cryptMppeKey
public static final byte[] cryptMppeKey(byte[] key, byte[] secret, byte[] requestAuth) -
checkMSChapV2Password
public static byte[] checkMSChapV2Password(byte[] challenge, byte[] peerChallenge, byte[] ntResponse, String userName, String userPassword, String welcome) throws UnsupportedEncodingException, Exception -
checkMSChapV2Password
public static boolean checkMSChapV2Password(RadiusAttributeSet request, RadiusAttributeSet response, String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy) -
checkMSChapV2Password
public static boolean checkMSChapV2Password(RadiusAttributeSet request, RadiusAttributeSet response, String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy, boolean ident)
-