Home
last modified time | relevance | path

Searched refs:IkeNotifyPayload (Results 1 – 21 of 21) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java34 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_COOKIE;
35 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_COOKIE2;
102 IkeNotifyPayload payload = new IkeNotifyPayload(false, inputPacket); in testDecodeNotifyPayloadSpiUnset()
105 assertEquals(IkeNotifyPayload.NOTIFY_TYPE_NAT_DETECTION_SOURCE_IP, payload.notifyType); in testDecodeNotifyPayloadSpiUnset()
114 IkeNotifyPayload payload = new IkeNotifyPayload(false, inputPacket); in testDecodeNotifyPayloadSpiSet()
117 assertEquals(IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA, payload.notifyType); in testDecodeNotifyPayloadSpiSet()
129 IkeNotifyPayload.generateNatDetectionData( in testGenerateNatDetectionData()
141 IkeNotifyPayload inboundCookieNotify = new IkeNotifyPayload(cookieType, cookieData); in verifyHandleCookieAndGenerateCopy()
143 IkeNotifyPayload outboundCookieNotify = in verifyHandleCookieAndGenerateCopy()
145 ? IkeNotifyPayload.handleCookie2AndGenerateCopy(inboundCookieNotify) in verifyHandleCookieAndGenerateCopy()
[all …]
DIkeAuthDigitalSignPayloadTest.java300 IkeNotifyPayload payload = in testGetSignatureHashAlgorithmsFromIkeNotifyPayload()
301 new IkeNotifyPayload( in testGetSignatureHashAlgorithmsFromIkeNotifyPayload()
302 IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HASH_ALGORITHMS, in testGetSignatureHashAlgorithmsFromIkeNotifyPayload()
320 IkeNotifyPayload payload = new IkeNotifyPayload(IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA); in testGetSignatureHashAlgorithmsFromIkeNotifyPayloadWrongType()
327 IkeNotifyPayload payload = in testGetSignatureHashAlgorithmsFromIkeNotifyPayloadMalformatted()
328 new IkeNotifyPayload( in testGetSignatureHashAlgorithmsFromIkeNotifyPayloadMalformatted()
329 IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HASH_ALGORITHMS, in testGetSignatureHashAlgorithmsFromIkeNotifyPayloadMalformatted()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppExtensionExchangeTest.java36 import com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload;
59 private static final IkeNotifyPayload N1_MODE_INFORMATION =
60 new IkeNotifyPayload(NOTIFY_TYPE_N1_MODE_INFORMATION, N1_MODE_INFORMATION_DATA);
61 private static final IkeNotifyPayload FRAGMENTATION_SUPPORTED =
62 new IkeNotifyPayload(IkeNotifyPayload.NOTIFY_TYPE_IKEV2_FRAGMENTATION_SUPPORTED);
63 private static final IkeNotifyPayload BACKOFF_TIMER =
64 new IkeNotifyPayload(NOTIFY_TYPE_BACKOFF_TIMER, BACKOFF_TIMER_DATA);
65 private static final IkeNotifyPayload DEVICE_IDENTITY_REQUEST =
66 new IkeNotifyPayload(NOTIFY_TYPE_DEVICE_IDENTITY, DEVICE_IDENTITY_PAYLOAD_IMEI);
100 IkeNotifyPayload deviceIdentity = (IkeNotifyPayload) result.get(0); in testGetRequestPayloadsInEapIkeAuthServerAuthenticatedAndNetworkRequested()
[all …]
DIke3gppDeviceIdentityUtilsTest.java24 import com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload;
43 IkeNotifyPayload deviceIdentityPayload = in testGenerateDeviceIdentityWithImeisv()
54 IkeNotifyPayload deviceIdentityPayload = in testGenerateDeviceIdentityWithImei()
DIke3gppN1ModeUtilsTest.java24 import com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload;
41 IkeNotifyPayload n1ModeCapabilityPayload = in testGenerateN1ModeCapabilityPayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppIkeAuth.java33 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload;
93 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) payload; in extract3gppResponsePayloads()
110 List<IkeNotifyPayload> notifyPayloads = in handleAuthResp()
112 IkePayload.PAYLOAD_TYPE_NOTIFY, IkeNotifyPayload.class, ike3gppPayloads); in handleAuthResp()
114 IkeNotifyPayload backoffTimerPayload = null; in handleAuthResp()
115 IkeNotifyPayload backoffTimerCause = null; in handleAuthResp()
116 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in handleAuthResp()
DIke3gppIkeInfo.java26 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload;
47 List<IkeNotifyPayload> notifyPayloads = in getResponsePayloads()
50 IkeNotifyPayload.class, in getResponsePayloads()
52 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in getResponsePayloads()
DIke3gppN1ModeUtils.java20 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload;
42 static IkeNotifyPayload generateN1ModeCapabilityPayload(byte pduSessionId) { in generateN1ModeCapabilityPayload()
47 return new IkeNotifyPayload( in generateN1ModeCapabilityPayload()
DIke3gppDeviceIdentityUtils.java21 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload;
48 static IkeNotifyPayload generateDeviceIdentityPayload(@NonNull String deviceIdentity) in generateDeviceIdentityPayload()
122 return new IkeNotifyPayload( in generateDeviceIdentityPayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayload.java83 public final class IkeNotifyPayload extends IkeInformationalPayload { class
84 private static final String TAG = IkeNotifyPayload.class.getSimpleName();
278 IkeNotifyPayload(boolean isCritical, byte[] payloadBody) throws IkeProtocolException { in IkeNotifyPayload() method in IkeNotifyPayload
370 private static IkeNotifyPayload handleCookieAndGenerateCopy( in handleCookieAndGenerateCopy()
371 IkeNotifyPayload cookie2Notify, int minLen, int maxLen) throws InvalidSyntaxException { in handleCookieAndGenerateCopy()
383 return new IkeNotifyPayload(cookie2Notify.notifyType, notifyData); in handleCookieAndGenerateCopy()
387 public static IkeNotifyPayload handleCookieAndGenerateCopy(IkeNotifyPayload cookieNotify) in handleCookieAndGenerateCopy()
393 public static IkeNotifyPayload handleCookie2AndGenerateCopy(IkeNotifyPayload cookie2Notify) in handleCookie2AndGenerateCopy()
425 protected IkeNotifyPayload( in IkeNotifyPayload() method in IkeNotifyPayload
443 public IkeNotifyPayload(int notifyType, byte[] notifyData) { in IkeNotifyPayload() method in IkeNotifyPayload
[all …]
DIkeMessage.java39 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NotifyType;
373 for (IkeNotifyPayload notify : in hasNotifyPayload()
374 this.getPayloadListForType(PAYLOAD_TYPE_NOTIFY, IkeNotifyPayload.class)) { in hasNotifyPayload()
445 List<IkeNotifyPayload> notifyPayloads = in getIkeExchangeSubType()
447 IkePayload.PAYLOAD_TYPE_NOTIFY, IkeNotifyPayload.class); in getIkeExchangeSubType()
451 for (IkeNotifyPayload notifyPayload : notifyPayloads) { in getIkeExchangeSubType()
452 if (notifyPayload.notifyType == IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA) { in getIkeExchangeSubType()
DIkeAuthDigitalSignPayload.java367 IkeNotifyPayload notifyPayload) throws InvalidSyntaxException { in getSignatureHashAlgorithmsFromIkeNotifyPayload()
368 if (notifyPayload.notifyType != IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HASH_ALGORITHMS) { in getSignatureHashAlgorithmsFromIkeNotifyPayload()
DIkePayloadFactory.java80 return new IkeNotifyPayload(isCritical, payloadBody); in decodeIkePayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java56 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_COOKIE;
57 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_COOKIE2;
58 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_EAP_ONLY_AUTH…
59 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_IKEV2_FRAGMEN…
60 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_INITIAL_CONTA…
61 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_MOBIKE_SUPPOR…
62 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_NAT_DETECTION…
63 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_NAT_DETECTION…
64 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA;
65 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HAS…
[all …]
DChildSessionStateMachine.java31 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA;
32 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NOTIFY_TYPE_USE_TRANSPORT…
90 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload;
91 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.NotifyType;
618 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType, notifyData); in replyErrorNotification()
1409 IkeNotifyPayload notify = (IkeNotifyPayload) payload; in validateDeleteRespPayloadAndExchangeType()
2297 new IkeNotifyPayload( in getRekeyChildCreateReqPayloads()
2328 new IkeNotifyPayload( in getRekeyChildCreateRespPayloads()
2360 if (isTransport) payloadList.add(new IkeNotifyPayload(NOTIFY_TYPE_USE_TRANSPORT_MODE)); in getChildCreatePayloads()
2451 List<IkeNotifyPayload> notifyPayloads = in hasRemoteChildSpiForRekey()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ike3gpp/
DIke3gppBackoffTimerTest.java25 import com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload;
48 IkeNotifyPayload notifyPayload = in testIsValidErrorNotifyCause()
49 new IkeNotifyPayload(IkeProtocolException.ERROR_TYPE_AUTHENTICATION_FAILED); in testIsValidErrorNotifyCause()
52 notifyPayload = new IkeNotifyPayload(NOTIFY_ERROR_TYPE_INVALID_VALUE); in testIsValidErrorNotifyCause()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ike3gpp/
DIke3gppBackoffTimer.java19 import static com.android.internal.net.ipsec.ike.message.IkeNotifyPayload.ERROR_NOTIFY_TYPE_MAX;
25 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload;
108 public static boolean isValidErrorNotifyCause(IkeNotifyPayload notifyPayload) { in isValidErrorNotifyCause()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolExceptionTest.java25 import com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload;
42 IkeNotifyPayload payload = exception.buildNotifyPayload(); in buildNotifyPayloadWithData()
52 IkeNotifyPayload payload = exception.buildNotifyPayload(); in buildNotifyPayloadWithoutData()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java67 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_COOKIE;
68 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_COOKIE2;
69 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_EAP_ONLY…
70 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_IKEV2_FR…
71 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_INITIAL_…
72 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_MOBIKE_S…
73 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_NAT_DETE…
74 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_NAT_DETE…
75 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_SIGNATUR…
76 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_UPDATE_S…
[all …]
DChildSessionStateMachineTest.java37 import static com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA;
122 import com.android.internal.net.ipsec.test.ike.message.IkeNotifyPayload;
662 PAYLOAD_TYPE_NOTIFY, IkeNotifyPayload.class, reqPayloadList) in checkCreateChildAndGetRequest()
723 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType); in createChildSessionAndReceiveErrorNotification()
1036 IkeNotifyPayload notifyPayload = (IkeNotifyPayload) respPayloadList.get(0); in testReplyRekeyRequestDuringDeletion()
1087 List<IkeNotifyPayload> notifyPayloads = in verifyOutboundRekeyNotifyPayload()
1089 PAYLOAD_TYPE_NOTIFY, IkeNotifyPayload.class, outboundPayloads); in verifyOutboundRekeyNotifyPayload()
1091 IkeNotifyPayload notifyPayload = notifyPayloads.get(0); in verifyOutboundRekeyNotifyPayload()
1160 new IkeNotifyPayload( in makeInboundRekeyChildPayloads()
1323 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(ERROR_TYPE_INTERNAL_ADDRESS_FAILURE); in testRekeyLocalCreateHandlesErrorNotifyResp()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolException.java22 import com.android.internal.net.ipsec.ike.message.IkeNotifyPayload;
220 public IkeNotifyPayload buildNotifyPayload() { in buildNotifyPayload()
221 return new IkeNotifyPayload(mErrorType, mErrorData); in buildNotifyPayload()