Home
last modified time | relevance | path

Searched refs:notifyPayload (Results 1 – 12 of 12) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppIkeAuth.java93 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) payload; in extract3gppResponsePayloads() local
94 if (SUPPORTED_RESPONSE_NOTIFY_TYPES.contains(notifyPayload.notifyType) in extract3gppResponsePayloads()
95 || isValidErrorNotifyCause(notifyPayload)) { in extract3gppResponsePayloads()
96 ike3gppPayloads.add(notifyPayload); in extract3gppResponsePayloads()
116 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in handleAuthResp()
117 switch (notifyPayload.notifyType) { in handleAuthResp()
126 Ike3gppN1ModeUtils.getSnssaiFromNotifyData(notifyPayload.notifyData); in handleAuthResp()
130 backoffTimerPayload = notifyPayload; in handleAuthResp()
136 if (isValidErrorNotifyCause(notifyPayload)) { in handleAuthResp()
138 backoffTimerCause = notifyPayload; in handleAuthResp()
[all …]
DIke3gppIkeInfo.java52 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in getResponsePayloads()
53 switch (notifyPayload.notifyType) { in getResponsePayloads()
64 logd("Payload ignored in Ike3gppIkeInfo" + notifyPayload.getTypeString()); in getResponsePayloads()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java185 IkeNotifyPayload notifyPayload = in testBuildIkeErrorNotifyWithData() local
190 assertArrayEquals(new byte[] {(byte) payloadType}, notifyPayload.notifyData); in testBuildIkeErrorNotifyWithData()
191 assertTrue(notifyPayload.isErrorNotify()); in testBuildIkeErrorNotifyWithData()
192 assertFalse(notifyPayload.isNewChildSaNotify()); in testBuildIkeErrorNotifyWithData()
197 IkeNotifyPayload notifyPayload = in testBuildIkeErrorNotifyWithoutData() local
200 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildIkeErrorNotifyWithoutData()
201 assertTrue(notifyPayload.isErrorNotify()); in testBuildIkeErrorNotifyWithoutData()
202 assertFalse(notifyPayload.isNewChildSaNotify()); in testBuildIkeErrorNotifyWithoutData()
207 IkeNotifyPayload notifyPayload = in testBuildChildConfigNotify() local
210 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildConfigNotify()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ike3gpp/
DIke3gppBackoffTimerTest.java48 IkeNotifyPayload notifyPayload = in testIsValidErrorNotifyCause() local
50 assertTrue(Ike3gppBackoffTimer.isValidErrorNotifyCause(notifyPayload)); in testIsValidErrorNotifyCause()
52 notifyPayload = new IkeNotifyPayload(NOTIFY_ERROR_TYPE_INVALID_VALUE); in testIsValidErrorNotifyCause()
53 assertFalse(Ike3gppBackoffTimer.isValidErrorNotifyCause(notifyPayload)); in testIsValidErrorNotifyCause()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppExtensionExchangeTest.java216 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) payload; in testExtract3gppResponsePayloadsIkeAuth() local
217 if (notifyPayload.notifyType == NOTIFY_TYPE_N1_MODE_INFORMATION) { in testExtract3gppResponsePayloadsIkeAuth()
218 n1ModeInformation = notifyPayload; in testExtract3gppResponsePayloadsIkeAuth()
219 } else if (notifyPayload.notifyType == NOTIFY_TYPE_BACKOFF_TIMER) { in testExtract3gppResponsePayloadsIkeAuth()
220 backoffTimer = notifyPayload; in testExtract3gppResponsePayloadsIkeAuth()
221 } else if (notifyPayload.notifyType == NOTIFY_TYPE_DEVICE_IDENTITY) { in testExtract3gppResponsePayloadsIkeAuth()
222 deviceIdentity = notifyPayload; in testExtract3gppResponsePayloadsIkeAuth()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java1733 IkeSaRecord ikeSaRecord, int messageId, IkeNotifyPayload notifyPayload) { in buildAndSendNotificationResponse() argument
1737 new IkeInformationalPayload[] {notifyPayload}, in buildAndSendNotificationResponse()
2363 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) payload; in handle3gppRespAndExtractNonError3gppPayloads() local
2364 if (notifyPayload.isErrorNotify()) { in handle3gppRespAndExtractNonError3gppPayloads()
3075 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) payload; in handleInboundRekeyChildRequest() local
3076 if (NOTIFY_TYPE_REKEY_SA != notifyPayload.notifyType) break; in handleInboundRekeyChildRequest()
3078 int childSpi = notifyPayload.spi; in handleInboundRekeyChildRequest()
3093 handledPayloads.add(notifyPayload); in handleInboundRekeyChildRequest()
3581 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) payload; in validateIkeInitResp() local
3583 if (notifyPayload.isErrorNotify()) { in validateIkeInitResp()
[all …]
DChildSessionStateMachine.java618 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType, notifyData); in replyErrorNotification() local
619 outPayloads.add(notifyPayload); in replyErrorNotification()
2456 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in hasRemoteChildSpiForRekey()
2457 if (notifyPayload.notifyType == NOTIFY_TYPE_REKEY_SA in hasRemoteChildSpiForRekey()
2458 && notifyPayload.spi == expectedRecord.getRemoteSpi()) { in hasRemoteChildSpiForRekey()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthDigitalSignPayload.java367 IkeNotifyPayload notifyPayload) throws InvalidSyntaxException { in getSignatureHashAlgorithmsFromIkeNotifyPayload() argument
368 if (notifyPayload.notifyType != IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HASH_ALGORITHMS) { in getSignatureHashAlgorithmsFromIkeNotifyPayload()
374 int dataLen = notifyPayload.notifyData.length; in getSignatureHashAlgorithmsFromIkeNotifyPayload()
381 ByteBuffer serializedHashAlgos = ByteBuffer.wrap(notifyPayload.notifyData); in getSignatureHashAlgorithmsFromIkeNotifyPayload()
DIkeMessage.java451 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in getIkeExchangeSubType()
452 if (notifyPayload.notifyType == IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA) { in getIkeExchangeSubType()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ike3gpp/
DIke3gppBackoffTimer.java108 public static boolean isValidErrorNotifyCause(IkeNotifyPayload notifyPayload) { in isValidErrorNotifyCause() argument
109 return notifyPayload.isErrorNotify(); in isValidErrorNotifyCause()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java723 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType); in createChildSessionAndReceiveErrorNotification() local
725 respPayloads.add(notifyPayload); in createChildSessionAndReceiveErrorNotification()
1036 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) respPayloadList.get(0); in testReplyRekeyRequestDuringDeletion() local
1037 assertEquals(ERROR_TYPE_TEMPORARY_FAILURE, notifyPayload.notifyType); in testReplyRekeyRequestDuringDeletion()
1038 assertEquals(0, notifyPayload.notifyData.length); in testReplyRekeyRequestDuringDeletion()
1091 IkeNotifyPayload notifyPayload = notifyPayloads.get(0); in verifyOutboundRekeyNotifyPayload() local
1092 assertEquals(NOTIFY_TYPE_REKEY_SA, notifyPayload.notifyType); in verifyOutboundRekeyNotifyPayload()
1093 assertEquals(PROTOCOL_ID_ESP, notifyPayload.protocolId); in verifyOutboundRekeyNotifyPayload()
1094 assertEquals(mSpyCurrentChildSaRecord.getLocalSpi(), notifyPayload.spi); in verifyOutboundRekeyNotifyPayload()
1323 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(ERROR_TYPE_INTERNAL_ADDRESS_FAILURE); in testRekeyLocalCreateHandlesErrorNotifyResp() local
[all …]
DIkeSessionStateMachineTest.java1913 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in verifyNatdSrcIpFromIkeInitReqMessage()
1914 if (notifyPayload.notifyType == NOTIFY_TYPE_NAT_DETECTION_SOURCE_IP) { in verifyNatdSrcIpFromIkeInitReqMessage()
1915 natdSrcIpPayload = notifyPayload; in verifyNatdSrcIpFromIkeInitReqMessage()
2781 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) ikePayloadList.get(0); in testHandleRekeyChildReqWithUnrecognizedSpi() local
2782 assertEquals(ERROR_TYPE_CHILD_SA_NOT_FOUND, notifyPayload.notifyType); in testHandleRekeyChildReqWithUnrecognizedSpi()
2783 assertEquals(unrecognizedSpi, notifyPayload.spi); in testHandleRekeyChildReqWithUnrecognizedSpi()
3172 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in verifyN1ModeCapabilityPayload()
3173 if (notifyPayload.notifyType == NOTIFY_TYPE_N1_MODE_CAPABILITY) { in verifyN1ModeCapabilityPayload()
3174 n1ModeCapabilityPayload = notifyPayload; in verifyN1ModeCapabilityPayload()
3687 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in testCreateIkeLocalIkeAuthInEapOutboundResponseIncludesDeviceIdentity()
[all …]