java.lang.Object
ru.bitel.bgbilling.kernel.network.radius.MSUtils

public class MSUtils
extends java.lang.Object
  • Field Details

  • 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 java.security.NoSuchAlgorithmException
      Throws:
      java.security.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, java.lang.String userName, java.lang.String userPassword, java.lang.String welcome) throws java.io.UnsupportedEncodingException, java.lang.Exception
      Throws:
      java.io.UnsupportedEncodingException
      java.lang.Exception
    • checkMSChapV2Password

      public static boolean checkMSChapV2Password​(RadiusAttributeSet request, RadiusAttributeSet response, java.lang.String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy)
    • checkMSChapV2Password

      public static boolean checkMSChapV2Password​(RadiusAttributeSet request, RadiusAttributeSet response, java.lang.String openPassword, byte[] secret, byte[] authenticator, boolean addTypesAndPolicy, boolean ident)