Home
last modified time | relevance | path

Searched refs:EapResult (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java47 import com.android.internal.net.eap.EapResult;
48 import com.android.internal.net.eap.EapResult.EapError;
49 import com.android.internal.net.eap.EapResult.EapFailure;
50 import com.android.internal.net.eap.EapResult.EapResponse;
51 import com.android.internal.net.eap.EapResult.EapSuccess;
73 public class EapStateMachine extends SimpleStateMachine<byte[], EapResult> {
112 protected EapResult transitionAndProcess(EapState newState, byte[] packet) { in transitionAndProcess()
166 public final EapResult eapResult;
173 public DecodeResult(EapResult eapResult) { in DecodeResult()
187 public EapResult process(@NonNull byte[] packet) { in process()
[all …]
DEapSimAkaMethodStateMachine.java30 import com.android.internal.net.eap.EapResult;
31 import com.android.internal.net.eap.EapResult.EapError;
32 import com.android.internal.net.eap.EapResult.EapResponse;
126 EapResult handleEapNotification(String tag, EapMessage message) { in handleEapNotification()
135 EapResult buildClientErrorResponse( in buildClientErrorResponse()
146 return EapResult.EapResponse.getEapResponse(response); in buildClientErrorResponse()
148 return new EapResult.EapError(ex); in buildClientErrorResponse()
153 EapResult buildResponseMessage( in buildResponseMessage()
163 return EapResult.EapResponse.getEapResponse(eapMessage); in buildResponseMessage()
165 return new EapResult.EapError(ex); in buildResponseMessage()
[all …]
DEapMsChapV2MethodStateMachine.java36 import com.android.internal.net.eap.EapResult;
37 import com.android.internal.net.eap.EapResult.EapError;
38 import com.android.internal.net.eap.EapResult.EapFailure;
39 import com.android.internal.net.eap.EapResult.EapResponse;
40 import com.android.internal.net.eap.EapResult.EapSuccess;
216 EapResult handleEapNotification(String tag, EapMessage message) { in handleEapNotification()
224 public EapResult process(EapMessage message) { in process()
225 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
244 public EapResult process(EapMessage message) { in process()
245 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
[all …]
DEapMethodStateMachine.java27 import com.android.internal.net.eap.EapResult;
28 import com.android.internal.net.eap.EapResult.EapError;
29 import com.android.internal.net.eap.EapResult.EapFailure;
39 public abstract class EapMethodStateMachine extends SimpleStateMachine<EapMessage, EapResult> {
69 abstract EapResult handleEapNotification(String tag, EapMessage message); in handleEapNotification()
83 EapResult handleEapSuccessFailureNotification(String tag, EapMessage message) { in handleEapSuccessFailureNotification()
115 public EapResult process(EapMessage msg) { in process()
DEapTtlsMethodStateMachine.java27 import com.android.internal.net.eap.EapResult;
28 import com.android.internal.net.eap.EapResult.EapError;
89 EapResult handleEapNotification(String tag, EapMessage message) { in handleEapNotification()
101 public EapResult process(EapMessage message) { in process()
103 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
135 public EapResult process(EapMessage message) { in process()
149 public EapResult process(EapMessage message) { in process()
DEapAkaMethodStateMachine.java44 import com.android.internal.net.eap.EapResult;
45 import com.android.internal.net.eap.EapResult.EapError;
46 import com.android.internal.net.eap.EapResult.EapSuccess;
173 public EapResult process(EapMessage message) { in process()
174 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
212 public EapResult process(EapMessage message) { in process()
213 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
324 public EapResult process(EapMessage message) { in process()
336 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
374 protected EapResult handleChallengeAuthentication( in handleChallengeAuthentication()
[all …]
DEapSimMethodStateMachine.java41 import com.android.internal.net.eap.EapResult;
42 import com.android.internal.net.eap.EapResult.EapError;
43 import com.android.internal.net.eap.EapResult.EapSuccess;
138 public EapResult process(EapMessage message) { in process()
139 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
196 public EapResult process(EapMessage message) { in process()
197 EapResult result = handleEapSuccessFailureNotification(mTAG, message); in process()
367 public EapResult process(EapMessage message) { in process()
379 EapResult eapResult = handleEapSuccessFailureNotification(mTAG, message); in process()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapStateTest.java35 import com.android.internal.net.eap.EapResult;
36 import com.android.internal.net.eap.EapResult.EapError;
37 import com.android.internal.net.eap.EapResult.EapResponse;
69 public EapResult process(byte[] msg) { in setUp()
77 EapResult result = mEapState.process(null); in testProcessNullPacket()
86 EapResult result = mEapState.process(REQUEST_UNSUPPORTED_TYPE_PACKET); in testProcessUnsupportedEapDataType()
95 EapResult result = mEapState.process(SHORT_PACKET); in testProcessDecodeFailure()
104 EapResult result = mEapState.process(EAP_RESPONSE_NOTIFICATION_PACKET); in testProcessResponse()
113 EapResult result = mEapState.process(EAP_REQUEST_NAK_PACKET); in testProcessNakRequest()
122 EapResult result = mEapState.process(EAP_REQUEST_MD5_CHALLENGE); in testProcessMd5Challenge()
DEapAkaPrimeStateTest.java36 import com.android.internal.net.eap.EapResult;
37 import com.android.internal.net.eap.EapResult.EapError;
38 import com.android.internal.net.eap.EapResult.EapFailure;
39 import com.android.internal.net.eap.EapResult.EapResponse;
60 EapResult result = mStateMachine.process(notification); in testProcessNotification()
78 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidDecodeResult()
89 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailure()
96 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccess()
DEapMsChapV2ValidateAuthenticatorStateTest.java46 import com.android.internal.net.eap.EapResult;
47 import com.android.internal.net.eap.EapResult.EapError;
48 import com.android.internal.net.eap.EapResult.EapFailure;
49 import com.android.internal.net.eap.EapResult.EapResponse;
94 EapResult result = mStateMachine.process(eapMessage); in testProcessSuccessRequest()
116 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidSuccessRequest()
143 EapResult result = mStateMachine.process(eapMessage); in testProcessFailureRequest()
159 EapResult result = mStateMachine.process(eapMessage); in testProcessEmptyTypeData()
172 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidPacket()
DEapTtlsStateTest.java39 import com.android.internal.net.eap.EapResult;
40 import com.android.internal.net.eap.EapResult.EapError;
41 import com.android.internal.net.eap.EapResult.EapFailure;
42 import com.android.internal.net.eap.EapResult.EapResponse;
86 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailureNotification()
93 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccessNotification()
104 EapResult result = mStateMachine.process(eapMessage); in testHandleEapNotification()
DEapMsChapV2StateTest.java36 import com.android.internal.net.eap.EapResult;
37 import com.android.internal.net.eap.EapResult.EapError;
38 import com.android.internal.net.eap.EapResult.EapFailure;
39 import com.android.internal.net.eap.EapResult.EapResponse;
76 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailure()
83 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccess()
94 EapResult result = mStateMachine.process(notification); in testHandleEapNotification()
DMethodStateTest.java51 import com.android.internal.net.eap.EapResult;
52 import com.android.internal.net.eap.EapResult.EapError;
53 import com.android.internal.net.eap.EapResult.EapFailure;
54 import com.android.internal.net.eap.EapResult.EapResponse;
55 import com.android.internal.net.eap.EapResult.EapSuccess;
85 EapResult result = mEapState.process(EAP_REQUEST_IDENTITY_PACKET); in testProcessUnsupportedEapType()
202 EapResult result = mEapStateMachine.process(EAP_FAILURE_PACKET); in testProcessEapFailureWithNoEapMethodState()
209 EapResult result = mEapStateMachine.process(EAP_SUCCESS_PACKET); in testProcessEapSuccessWithNoEapMethodState()
217 EapResult result = mEapStateMachine.process(EAP_REQUEST_NOTIFICATION_PACKET); in testProcessEapNotificationWithNoEapMethodState()
DEapAkaStateTest.java44 import com.android.internal.net.eap.EapResult;
45 import com.android.internal.net.eap.EapResult.EapResponse;
102 EapResult result = mEapAkaMethodStateMachine.process(notification); in testProcessNotification()
106 assertTrue(result instanceof EapResult.EapResponse); in testProcessNotification()
107 EapResult.EapResponse eapResponse = (EapResult.EapResponse) result; in testProcessNotification()
141 EapResult result = mEapAkaMethodStateMachine.process(eapMessage); in testProcessInvalidDecodeResult()
DEapSimStartStateTest.java49 import com.android.internal.net.eap.EapResult;
50 import com.android.internal.net.eap.EapResult.EapError;
51 import com.android.internal.net.eap.EapResult.EapFailure;
52 import com.android.internal.net.eap.EapResult.EapResponse;
102 EapResult result = mStartState.process(input); in testProcessSuccess()
111 EapResult result = mStartState.process(input); in testProcessFailure()
122 EapResult result = mStartState.process(eapMessage); in testProcessIncorrectEapMethodType()
198 EapResult result = mStartState.process(eapMessage); in testAddIdentityAttributeToResponseImsiUnavailable()
229 EapResult result = mEapSimMethodStateMachine.process(eapMessage); in testProcessWithoutIdentityRequest()
DEapSimCreatedStateTest.java33 import com.android.internal.net.eap.EapResult;
34 import com.android.internal.net.eap.EapResult.EapError;
35 import com.android.internal.net.eap.EapResult.EapFailure;
68 EapResult result = mCreatedState.process(input); in testProcessSuccess()
77 EapResult result = mCreatedState.process(input); in testProcessFailure()
107 EapResult result = mEapSimMethodStateMachine.process(eapMessage); in testProcessIncorrectEapMethodType()
DIdentityStateTest.java36 import com.android.internal.net.eap.EapResult;
37 import com.android.internal.net.eap.EapResult.EapResponse;
64 EapResult eapResult = mEapState.process(EAP_REQUEST_IDENTITY_PACKET); in testProcess()
74 EapResult eapResult = mEapState.process(EAP_REQUEST_IDENTITY_PACKET); in testProcessDefaultIdentity()
84 EapResult eapResult = mEapState.process(EAP_REQUEST_NOTIFICATION_PACKET); in testProcessNotificationRequest()
DEapAkaCreatedStateTest.java35 import com.android.internal.net.eap.EapResult;
36 import com.android.internal.net.eap.EapResult.EapError;
37 import com.android.internal.net.eap.EapResult.EapFailure;
96 EapResult result = mEapAkaMethodStateMachine.process(input); in testProcessSuccess()
105 EapResult result = mEapAkaMethodStateMachine.process(input); in testProcessFailure()
DEapMsChapV2ChallengeStateTest.java39 import com.android.internal.net.eap.EapResult;
40 import com.android.internal.net.eap.EapResult.EapError;
41 import com.android.internal.net.eap.EapResult.EapResponse;
82 EapResult result = mStateMachine.process(eapMessage); in testProcessChallenge()
101 EapResult result = mStateMachine.process(eapMessage); in testIncorrectTypeData()
DEapSimAkaMethodStateMachineTest.java86 import com.android.internal.net.eap.EapResult;
87 import com.android.internal.net.eap.EapResult.EapError;
88 import com.android.internal.net.eap.EapResult.EapResponse;
173 EapResult result = in testBuildClientErrorResponse()
175 assertTrue(result instanceof EapResult.EapResponse); in testBuildClientErrorResponse()
176 EapResult.EapResponse eapResponse = (EapResult.EapResponse) result; in testBuildClientErrorResponse()
187 EapResult result = in testBuildResponseMessage()
193 assertTrue(result instanceof EapResult); in testBuildResponseMessage()
354 EapResult result = in testBuildResponseMessageWithMac()
DEapStateMachineTest.java29 import com.android.internal.net.eap.EapResult;
30 import com.android.internal.net.eap.EapResult.EapError;
63 EapResult result = successState.process(EAP_SUCCESS_PACKET); in testSuccessStateProcessFails()
75 EapResult result = failureState.process(EAP_SUCCESS_PACKET); in testFailureStateProcessFails()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/
DEapResult.java28 public abstract class EapResult { class
36 public static class EapSuccess extends EapResult {
55 public static class EapFailure extends EapResult {}
63 public static class EapResponse extends EapResult {
81 public static EapResult getEapResponse(@NonNull EapMessage message) { in getEapResponse()
99 public static class EapError extends EapResult {
DEapAuthenticator.java26 import com.android.internal.net.eap.EapResult.EapError;
27 import com.android.internal.net.eap.EapResult.EapResponse;
28 import com.android.internal.net.eap.EapResult.EapSuccess;
161 EapResult processResponse; in processEapMessage()
169 final EapResult finalProcessResponse = processResponse; in processEapMessage()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/
DEapResponseTest.java26 import com.android.internal.net.eap.EapResult.EapError;
27 import com.android.internal.net.eap.EapResult.EapResponse;
46 EapResult eapResult = EapResponse.getEapResponse(mEapResponse); in testGetEapResponse()
64 EapResult eapResult = EapResponse.getEapResponse(mEapSuccess); in testGetEapResponseNonRequestMessage()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/
DEapMessage.java27 import com.android.internal.net.eap.EapResult;
28 import com.android.internal.net.eap.EapResult.EapError;
29 import com.android.internal.net.eap.EapResult.EapResponse;
194 public static EapResult getNotificationResponse(int eapIdentifier) { in getNotificationResponse()
215 public static EapResult getNakResponse( in getNakResponse()

12