Home
last modified time | relevance | path

Searched refs:notifyData (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayload.java268 public final byte[] notifyData; field in IkeNotifyPayload
303 notifyData = new byte[payloadBody.length - NOTIFY_HEADER_LEN - spiSize]; in IkeNotifyPayload()
304 inputBuffer.get(notifyData); in IkeNotifyPayload()
372 byte[] notifyData = cookie2Notify.notifyData; in handleCookieAndGenerateCopy()
373 if (notifyData.length < minLen || notifyData.length > maxLen) { in handleCookieAndGenerateCopy()
380 + notifyData.length); in handleCookieAndGenerateCopy()
383 return new IkeNotifyPayload(cookie2Notify.notifyType, notifyData); in handleCookieAndGenerateCopy()
412 byteBuffer.put(notifyData); in encodeToByteBuffer()
422 return GENERIC_HEADER_LENGTH + NOTIFY_HEADER_LEN + spiSize + notifyData.length; in getPayloadLength()
426 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument
[all …]
DIkeAuthDigitalSignPayload.java374 int dataLen = notifyPayload.notifyData.length; in getSignatureHashAlgorithmsFromIkeNotifyPayload()
381 ByteBuffer serializedHashAlgos = ByteBuffer.wrap(notifyPayload.notifyData); in getSignatureHashAlgorithmsFromIkeNotifyPayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java100 byte[] notifyData = TestUtils.hexStringToByteArray(NAT_DETECTION_DATA_HEX_STRING); in testDecodeNotifyPayloadSpiUnset()
107 assertArrayEquals(notifyData, payload.notifyData); in testDecodeNotifyPayloadSpiUnset()
119 assertArrayEquals(new byte[0], payload.notifyData); in testDecodeNotifyPayloadSpiSet()
148 assertArrayEquals(cookieData, outboundCookieNotify.notifyData); in verifyHandleCookieAndGenerateCopy()
190 assertArrayEquals(new byte[] {(byte) payloadType}, notifyPayload.notifyData); in testBuildIkeErrorNotifyWithData()
200 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildIkeErrorNotifyWithoutData()
210 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildConfigNotify()
220 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildErrorNotify()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DInvalidMajorVersionException.java57 public InvalidMajorVersionException(byte[] notifyData) { in InvalidMajorVersionException() argument
58 super(ERROR_TYPE_INVALID_MAJOR_VERSION, notifyData); in InvalidMajorVersionException()
59 mVersion = notifyData[0]; in InvalidMajorVersionException()
DIkeProtocolException.java137 protected IkeProtocolException(@ErrorType int code, byte[] notifyData) { in IkeProtocolException() argument
140 if (!isValidDataLength(notifyData.length)) { in IkeProtocolException()
145 + notifyData.length); in IkeProtocolException()
149 mErrorData = notifyData.clone(); in IkeProtocolException()
DUnsupportedCriticalPayloadException.java63 public UnsupportedCriticalPayloadException(byte[] notifyData) { in UnsupportedCriticalPayloadException() argument
64 super(ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, notifyData); in UnsupportedCriticalPayloadException()
65 mPayloadTypeList = Collections.singletonList(byteArrayToInteger(notifyData)); in UnsupportedCriticalPayloadException()
DTsUnacceptableException.java53 public TsUnacceptableException(byte[] notifyData) { in TsUnacceptableException() argument
54 super(ERROR_TYPE_TS_UNACCEPTABLE, notifyData); in TsUnacceptableException()
DNoAdditionalSasException.java52 public NoAdditionalSasException(byte[] notifyData) { in NoAdditionalSasException() argument
53 super(ERROR_TYPE_NO_ADDITIONAL_SAS, notifyData); in NoAdditionalSasException()
DFailedCpRequiredException.java53 public FailedCpRequiredException(byte[] notifyData) { in FailedCpRequiredException() argument
54 super(ERROR_TYPE_FAILED_CP_REQUIRED, notifyData); in FailedCpRequiredException()
DInvalidIkeSpiException.java52 public InvalidIkeSpiException(byte[] notifyData) { in InvalidIkeSpiException() argument
53 super(ERROR_TYPE_INVALID_IKE_SPI, notifyData); in InvalidIkeSpiException()
DSinglePairRequiredException.java53 public SinglePairRequiredException(byte[] notifyData) { in SinglePairRequiredException() argument
54 super(ERROR_TYPE_SINGLE_PAIR_REQUIRED, notifyData); in SinglePairRequiredException()
DInternalAddressFailureException.java52 public InternalAddressFailureException(byte[] notifyData) { in InternalAddressFailureException() argument
53 super(ERROR_TYPE_INTERNAL_ADDRESS_FAILURE, notifyData); in InternalAddressFailureException()
DTemporaryFailureException.java56 public TemporaryFailureException(byte[] notifyData) { in TemporaryFailureException() argument
57 super(ERROR_TYPE_TEMPORARY_FAILURE, notifyData); in TemporaryFailureException()
DInvalidMessageIdException.java56 public InvalidMessageIdException(byte[] notifyData) { in InvalidMessageIdException() argument
57 super(ERROR_TYPE_INVALID_MESSAGE_ID, notifyData); in InvalidMessageIdException()
DInvalidKeException.java57 public InvalidKeException(byte[] notifyData) { in InvalidKeException() argument
58 super(ERROR_TYPE_INVALID_KE_PAYLOAD, notifyData); in InvalidKeException()
DChildSaNotFoundException.java58 public ChildSaNotFoundException(int spi, byte[] notifyData) { in ChildSaNotFoundException() argument
59 super(ERROR_TYPE_CHILD_SA_NOT_FOUND, notifyData); in ChildSaNotFoundException()
DAuthenticationFailedException.java66 public AuthenticationFailedException(byte[] notifyData) { in AuthenticationFailedException() argument
67 super(ERROR_TYPE_AUTHENTICATION_FAILED, notifyData); in AuthenticationFailedException()
DNoValidProposalChosenException.java73 public NoValidProposalChosenException(byte[] notifyData) { in NoValidProposalChosenException() argument
74 super(ERROR_TYPE_NO_PROPOSAL_CHOSEN, notifyData); in NoValidProposalChosenException()
DInvalidSyntaxException.java86 public InvalidSyntaxException(byte[] notifyData) { in InvalidSyntaxException() argument
87 super(ERROR_TYPE_INVALID_SYNTAX, notifyData); in InvalidSyntaxException()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppN1ModeUtils.java58 static byte[] getSnssaiFromNotifyData(byte[] notifyData) throws InvalidSyntaxException { in getSnssaiFromNotifyData() argument
59 ByteBuffer buffer = ByteBuffer.wrap(notifyData); in getSnssaiFromNotifyData()
63 if (snssaiLen != notifyData.length - 1) { in getSnssaiFromNotifyData()
DIke3gppBackoffTimerUtils.java40 static byte getBackoffTimerfromNotifyData(byte[] notifyData) throws InvalidSyntaxException { in getBackoffTimerfromNotifyData() argument
41 ByteBuffer buffer = ByteBuffer.wrap(notifyData); in getBackoffTimerfromNotifyData()
DIke3gppIkeAuth.java126 Ike3gppN1ModeUtils.getSnssaiFromNotifyData(notifyPayload.notifyData); in handleAuthResp()
153 backoffTimerPayload.notifyData); in handleAuthResp()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppExtensionExchangeTest.java102 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentity.notifyData); in testGetRequestPayloadsInEapIkeAuthServerAuthenticatedAndNetworkRequested()
144 assertArrayEquals(N1_MODE_CAPABILITY_DATA, n1ModeCapability.notifyData); in testGetRequestPayloadsIkeAuth()
158 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentity.notifyData); in testGetResponsePayloadsIkeInfo()
228 assertArrayEquals(N1_MODE_INFORMATION_DATA, n1ModeInformation.notifyData); in testExtract3gppResponsePayloadsIkeAuth()
229 assertArrayEquals(BACKOFF_TIMER_DATA, backoffTimer.notifyData); in testExtract3gppResponsePayloadsIkeAuth()
230 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentity.notifyData); in testExtract3gppResponsePayloadsIkeAuth()
DIke3gppDeviceIdentityUtilsTest.java49 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEISV, deviceIdentityPayload.notifyData); in testGenerateDeviceIdentityWithImeisv()
60 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentityPayload.notifyData); in testGenerateDeviceIdentityWithImei()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolExceptionTest.java44 assertArrayEquals(new byte[] {(byte) 0x37}, payload.notifyData); in buildNotifyPayloadWithData()
54 assertArrayEquals(new byte[0], payload.notifyData); in buildNotifyPayloadWithoutData()

12