Home
last modified time | relevance | path

Searched refs:InvalidSyntaxException (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java33 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
111 IkeConfigPayload(boolean critical, byte[] payloadBody) throws InvalidSyntaxException { in IkeConfigPayload()
135 private void validateNetmaskInReply() throws InvalidSyntaxException { in validateNetmaskInReply()
160 throw new InvalidSyntaxException( in validateNetmaskInReply()
165 throw new InvalidSyntaxException("Found more than one INTERNAL_IP4_NETMASK"); in validateNetmaskInReply()
192 protected ConfigAttribute(int attributeType, int len) throws InvalidSyntaxException { in ConfigAttribute()
196 throw new InvalidSyntaxException("Invalid configuration length"); in ConfigAttribute()
219 | InvalidSyntaxException e) { in fromPersistableBundle()
252 throws InvalidSyntaxException { in decodeAttributesFrom()
272 throws InvalidSyntaxException { in decodeSingleAttributeFrom()
[all …]
DIkeNotifyPayload.java48 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
300 throw new InvalidSyntaxException("Invalid SPI Size: " + spiSize); in IkeNotifyPayload()
307 private void validateNotifyPayloadForExistingChildSa() throws InvalidSyntaxException { in validateNotifyPayloadForExistingChildSa()
309 throw new InvalidSyntaxException( in validateNotifyPayloadForExistingChildSa()
314 throw new InvalidSyntaxException( in validateNotifyPayloadForExistingChildSa()
319 private void validateNotifyPayloadForIkeAndNewChild() throws InvalidSyntaxException { in validateNotifyPayloadForIkeAndNewChild()
326 throw new InvalidSyntaxException( in validateNotifyPayloadForIkeAndNewChild()
371 IkeNotifyPayload cookie2Notify, int minLen, int maxLen) throws InvalidSyntaxException { in handleCookieAndGenerateCopy()
376 throw new InvalidSyntaxException( in handleCookieAndGenerateCopy()
388 throws InvalidSyntaxException { in handleCookieAndGenerateCopy()
[all …]
DIkeDeletePayload.java20 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
89 throw new InvalidSyntaxException("Invalid Delete IKE Payload."); in IkeDeletePayload()
97 throw new InvalidSyntaxException("Invalid Delete Child Payload."); in IkeDeletePayload()
105 throw new InvalidSyntaxException("Unrecognized protocol in Delete Payload."); in IkeDeletePayload()
DIkeHeader.java24 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
136 throw new InvalidSyntaxException("IKE message is too short to contain a header"); in IkeHeader()
195 throw new InvalidSyntaxException("Major version is smaller than 2."); in validateMajorVersion()
208 throw new InvalidSyntaxException("Invalid IKE Exchange Type."); in validateInboundHeader()
211 throw new InvalidSyntaxException("Invalid IKE Message Length."); in validateInboundHeader()
DIkePayloadFactory.java21 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
145 throw new InvalidSyntaxException( in getIkePayload()
152 throw new InvalidSyntaxException("Invalid Payload Length: Payload length is too long."); in getIkePayload()
197 throw new InvalidSyntaxException( in getIkeSkPayload()
205 throw new InvalidSyntaxException( in getIkeSkPayload()
DIkeSaPayload.java35 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
87 throw new InvalidSyntaxException("Found no SA Proposal in this SA Payload."); in IkeSaPayload()
92 throw new InvalidSyntaxException( in IkeSaPayload()
648 throw new InvalidSyntaxException( in readFrom()
675 throw new InvalidSyntaxException( in readFrom()
1075 throw new InvalidSyntaxException( in readFrom()
1145 throw new InvalidSyntaxException( in validateAttributeUniqueness()
1225 } catch (InvalidSyntaxException e) { in EncryptionTransform()
1253 throws InvalidSyntaxException { in EncryptionTransform()
1317 private void validateKeyLength() throws InvalidSyntaxException { in validateKeyLength()
[all …]
DIkeNoncePayload.java20 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
60 throw new InvalidSyntaxException( in IkeNoncePayload()
DIkeTsPayload.java21 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
54 throw new InvalidSyntaxException("Cannot find Traffic Selector in TS payload."); in IkeTsPayload()
DIkeMessage.java30 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
218 throw new InvalidSyntaxException( in decodePayloadList()
236 throw new InvalidSyntaxException( in decodePayloadList()
708 new InvalidSyntaxException("Malformed IKE Payload")); in decode()
746 new InvalidSyntaxException("Message contains unprotected payloads")); in decode()
837 new InvalidSyntaxException("Malformed IKE Payload", e), firstPacket); in decode()
869 throw new InvalidSyntaxException("Malformed IKE Payload", e); in decryptAndAuthenticate()
DIkeSkfPayload.java21 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
84 throw new InvalidSyntaxException( in IkeSkfPayload()
DIkeAuthDigitalSignPayload.java25 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
367 IkeNotifyPayload notifyPayload) throws InvalidSyntaxException { in getSignatureHashAlgorithmsFromIkeNotifyPayload()
376 throw new InvalidSyntaxException( in getSignatureHashAlgorithmsFromIkeNotifyPayload()
DIkeIdPayload.java28 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
65 throw new InvalidSyntaxException(getTypeString() + " is too short."); in IkeIdPayload()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeTrafficSelector.java22 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
280 throws InvalidSyntaxException { in decodeIkeTrafficSelectors()
297 throw new InvalidSyntaxException( in decodeIkeTrafficSelectors()
303 throw new InvalidSyntaxException(e); in decodeIkeTrafficSelectors()
307 throw new InvalidSyntaxException( in decodeIkeTrafficSelectors()
317 throws InvalidSyntaxException { in decodeTrafficSelector()
321 throw new InvalidSyntaxException("Invalid IP Protocol ID."); in decodeTrafficSelector()
329 throw new InvalidSyntaxException("Invalid Traffic Selector Length."); in decodeTrafficSelector()
336 throw new InvalidSyntaxException( in decodeTrafficSelector()
356 throw new InvalidSyntaxException("Invalid IP address family"); in decodeTrafficSelector()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DInvalidSyntaxException.java36 public final class InvalidSyntaxException extends IkeProtocolException { class
48 public InvalidSyntaxException(@NonNull String message) { in InvalidSyntaxException() method in InvalidSyntaxException
61 public InvalidSyntaxException(@NonNull Throwable cause) { in InvalidSyntaxException() method in InvalidSyntaxException
76 public InvalidSyntaxException(@NonNull String message, @NonNull Throwable cause) { in InvalidSyntaxException() method in InvalidSyntaxException
86 public InvalidSyntaxException(byte[] notifyData) { in InvalidSyntaxException() method in InvalidSyntaxException
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeTrafficSelectorTest.java27 import android.net.ipsec.test.ike.exceptions.InvalidSyntaxException;
204 } catch (InvalidSyntaxException expected) { in testDecodeIkeTrafficSelectorWithInvalidTsType()
218 } catch (InvalidSyntaxException expected) { in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
231 } catch (InvalidSyntaxException expected) { in testDecodeIkeTrafficSelectorWithExpectedTrailing()
248 } catch (InvalidSyntaxException expected) { in testDecodeIkeTrafficSelectorWithInvalidTsLength()
261 } catch (InvalidSyntaxException expected) { in testDecodeIkeTrafficSelectorWithInvalidPortRange()
274 } catch (InvalidSyntaxException expected) { in testDecodeIkeTrafficSelectorWithInvalidAddressRange()
433 } catch(InvalidSyntaxException e) { in testDecodeIpv6TSWithInvalidLength()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppBackoffTimerUtils.java18 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
40 static byte getBackoffTimerfromNotifyData(byte[] notifyData) throws InvalidSyntaxException { in getBackoffTimerfromNotifyData()
44 throw new InvalidSyntaxException("BACKOFF_TIMER payload with an invalid encoding"); in getBackoffTimerfromNotifyData()
DIke3gppN1ModeUtils.java18 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
58 static byte[] getSnssaiFromNotifyData(byte[] notifyData) throws InvalidSyntaxException { in getSnssaiFromNotifyData()
64 throw new InvalidSyntaxException("SNSSAI does not match expected length"); in getSnssaiFromNotifyData()
DIke3gppExtensionExchange.java25 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
204 throws InvalidSyntaxException { in handle3gppResponsePayloads()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppBackoffTimerUtilsTest.java21 import android.net.ipsec.test.ike.exceptions.InvalidSyntaxException;
41 @Test(expected = InvalidSyntaxException.class)
46 @Test(expected = InvalidSyntaxException.class)
DIke3gppN1ModeUtilsTest.java22 import android.net.ipsec.test.ike.exceptions.InvalidSyntaxException;
57 @Test(expected = InvalidSyntaxException.class)
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSkfPayloadTest.java27 import android.net.ipsec.test.ike.exceptions.InvalidSyntaxException;
146 } catch (InvalidSyntaxException expected) { in testDecodeThrowsForZeroFragNum()
161 } catch (InvalidSyntaxException expected) { in testDecodeThrowsForZeroTotalFragments()
182 } catch (InvalidSyntaxException expected) { in testDecodeThrowsWhenFragNumIsLargerThanTotalFragments()
DIkeNotifyPayloadTest.java52 import android.net.ipsec.test.ike.exceptions.InvalidSyntaxException;
157 @Test(expected = InvalidSyntaxException.class)
162 @Test(expected = InvalidSyntaxException.class)
172 @Test(expected = InvalidSyntaxException.class)
177 @Test(expected = InvalidSyntaxException.class)
303 ERROR_TYPE_INVALID_SYNTAX, InvalidSyntaxException.class); in testValidateAndBuildInvalidSyntaxException()
384 } catch (InvalidSyntaxException expected) { in testValidateAndBuildIkeExceptionWithInvalidPayload()
DIkeDeletePayloadTest.java29 import android.net.ipsec.test.ike.exceptions.InvalidSyntaxException;
103 } catch (InvalidSyntaxException expected) { in testDecodeWithInvalidProtocol()
118 } catch (InvalidSyntaxException expected) { in testDecodeWithInvalidSpiSize()
133 } catch (InvalidSyntaxException expected) { in testDecodeWithInvalidNumSpi()
149 } catch (InvalidSyntaxException expected) { in testDecodeWithInvalidNumSpiAndSpiSize()
DIkeHeaderTest.java25 import android.net.ipsec.test.ike.exceptions.InvalidSyntaxException;
118 IkeTestUtils.decodeAndVerifyUnprotectedErrorMsg(inputPacket, InvalidSyntaxException.class); in testDecodeIkeHeaderWithInvalidExchangeType()
127 IkeTestUtils.decodeAndVerifyUnprotectedErrorMsg(inputPacket, InvalidSyntaxException.class); in testDecodeIkeHeaderWithInvalidPacketLength()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java120 import android.net.ipsec.ike.exceptions.InvalidSyntaxException;
2078 new InvalidSyntaxException( in handleReceivedIkePacket()
2169 new InvalidSyntaxException( in handleReceivedIkePacket()
2232 new InvalidSyntaxException("Received unexpected TEMPORARY_FAILURE")); in handleTempFailure()
2283 } catch (InvalidSyntaxException e) { in handleGenericInfoRequest()
2338 IkeSaRecord ikeSaRecord, InvalidSyntaxException ikeException) { in handleResponseGenericProcessError()
2353 int exchangeSubtype, List<IkePayload> respPayloads) throws InvalidSyntaxException { in handle3gppRespAndExtractNonError3gppPayloads()
2448 throws InvalidSyntaxException { in validateIkeDeleteReq()
2450 throw new InvalidSyntaxException("Delete request received in wrong SA"); in validateIkeDeleteReq()
2484 } catch (InvalidSyntaxException e) { in handleDeleteSessionRequest()
[all …]

12