public EAPMSCHAPv2Authenticator(boolean peap) { setEAPType(EAP_MSCHAPV2); this.peap = peap; }
public void init() throws RadiusException { super.init(); tunnelAuth = new EAPMSCHAPv2Authenticator(true); }
System.arraycopy(data, 5, challenge, 0, 16); int length = 54 + getUsername().length; byte[] response = new byte[length]; response[0] = EAP_MSCHAPV2_RESPONSE; // OpCode response[3] = (byte) (length & 0xFF); // MS-Length response[4] = 49; // Value-Size System.arraycopy(MSCHAP.doMSCHAPv2(getUsername(), getPassword(), challenge), 2, response, 5, 48); // Response response[53] = 0; // Flags System.arraycopy(getUsername(), 0, response, 54, getUsername().length); // Name return response; setState(STATE_AUTHENTICATED); byte[] response = new byte[1]; response[0] = EAP_MSCHAPV2_SUCCESS; setState(STATE_FAILURE); byte[] response = new byte[1]; response[0] = EAP_MSCHAPV2_FAILURE;
public void init() throws RadiusException { super.init(); tunnelAuth = new EAPMSCHAPv2Authenticator(true); }
System.arraycopy(data, 5, challenge, 0, 16); int length = 54 + getUsername().length; byte[] response = new byte[length]; response[0] = EAP_MSCHAPV2_RESPONSE; // OpCode response[3] = (byte) (length & 0xFF); // MS-Length response[4] = 49; // Value-Size System.arraycopy(MSCHAP.doMSCHAPv2(getUsername(), getPassword(), challenge), 2, response, 5, 48); // Response response[53] = 0; // Flags System.arraycopy(getUsername(), 0, response, 54, getUsername().length); // Name return response; setState(STATE_AUTHENTICATED); byte[] response = new byte[1]; response[0] = EAP_MSCHAPV2_SUCCESS; setState(STATE_FAILURE); byte[] response = new byte[1]; response[0] = EAP_MSCHAPV2_FAILURE;
public void init() throws RadiusException { super.init(); tunnelAuth = new EAPMSCHAPv2Authenticator(true); }
public EAPMSCHAPv2Authenticator(boolean peap) { setEAPType(EAP_MSCHAPV2); this.peap = peap; }
public RadiusAuthenticator getAuthenticator() { final RadiusAuthenticator auth; final String authType = getAuthType(); if (authType.equalsIgnoreCase("chap")) { auth = new CHAPAuthenticator(); } else if (authType.equalsIgnoreCase("pap")) { auth = new PAPAuthenticator(); } else if (authType.equalsIgnoreCase("mschapv1")) { auth = new MSCHAPv1Authenticator(); } else if (authType.equalsIgnoreCase("mschapv2")) { auth = new MSCHAPv2Authenticator(); } else if (authType.equalsIgnoreCase("eapmd5") || authType.equalsIgnoreCase("eap-md5")) { auth = new EAPMD5Authenticator(); } else if (authType.equalsIgnoreCase("eapmschapv2") || authType.equalsIgnoreCase("eap-mschapv2")) { auth = new EAPMSCHAPv2Authenticator(); } else if (RadiusUtils.isEAPTTLS(authType)) { auth = new EAPTTLSAuthenticator(); } else { auth = null; } return auth; }
public EAPMSCHAPv2Authenticator() { setEAPType(EAP_MSCHAPV2); }
auth = new EAPMD5Authenticator(); } else if (authType.equalsIgnoreCase("eapmschapv2") || authType.equalsIgnoreCase("eap-mschapv2")) { auth = new EAPMSCHAPv2Authenticator(); } else if (RadiusUtils.isTunneling(authType)) { if (innerUser == null){
public EAPMSCHAPv2Authenticator() { setEAPType(EAP_MSCHAPV2); }