Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayload.java220 public final byte[] notifyData; field in IkeNotifyPayload
255 notifyData = new byte[payloadBody.length - NOTIFY_HEADER_LEN - spiSize]; in IkeNotifyPayload()
256 inputBuffer.get(notifyData); in IkeNotifyPayload()
335 byteBuffer.put(notifyData); in encodeToByteBuffer()
345 return GENERIC_HEADER_LENGTH + NOTIFY_HEADER_LEN + spiSize + notifyData.length; in getPayloadLength()
349 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument
355 this.notifyData = notifyData; in IkeNotifyPayload()
366 public IkeNotifyPayload(int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument
367 this(PROTOCOL_ID_UNSET, SPI_LEN_NOT_INCLUDED, SPI_NOT_INCLUDED, notifyType, notifyData); in IkeNotifyPayload()
393 @ProtocolId int protocolId, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java65 byte[] notifyData = TestUtils.hexStringToByteArray(NAT_DETECTION_DATA_HEX_STRING); in testDecodeNotifyPayloadSpiUnset()
72 assertArrayEquals(notifyData, payload.notifyData); in testDecodeNotifyPayloadSpiUnset()
84 assertArrayEquals(new byte[0], payload.notifyData); in testDecodeNotifyPayloadSpiSet()
109 assertArrayEquals(new byte[] {(byte) payloadType}, notifyPayload.notifyData); in testBuildIkeErrorNotifyWithData()
119 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildIkeErrorNotifyWithoutData()
129 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildConfigNotify()
139 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildErrorNotify()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolException.java139 protected IkeProtocolException(@ErrorType int code, byte[] notifyData) { in IkeProtocolException() argument
142 if (!isValidDataLength(notifyData.length)) { in IkeProtocolException()
147 + notifyData.length); in IkeProtocolException()
151 mErrorData = notifyData; in IkeProtocolException()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/exceptions/
DUnsupportedCriticalPayloadException.java59 public UnsupportedCriticalPayloadException(byte[] notifyData) { in UnsupportedCriticalPayloadException() argument
60 super(ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, notifyData); in UnsupportedCriticalPayloadException()
62 payloadTypeList.add(byteArrayToInteger(notifyData)); in UnsupportedCriticalPayloadException()
DUnrecognizedIkeProtocolException.java31 public UnrecognizedIkeProtocolException(int errorType, byte[] notifyData) { in UnrecognizedIkeProtocolException() argument
32 super(errorType, notifyData); in UnrecognizedIkeProtocolException()
DTsUnacceptableException.java42 public TsUnacceptableException(byte[] notifyData) { in TsUnacceptableException() argument
43 super(ERROR_TYPE_TS_UNACCEPTABLE, notifyData); in TsUnacceptableException()
DTemporaryFailureException.java46 public TemporaryFailureException(byte[] notifyData) { in TemporaryFailureException() argument
47 super(ERROR_TYPE_TEMPORARY_FAILURE, notifyData); in TemporaryFailureException()
DInvalidMajorVersionException.java48 public InvalidMajorVersionException(byte[] notifyData) { in InvalidMajorVersionException() argument
49 super(ERROR_TYPE_INVALID_MAJOR_VERSION, notifyData); in InvalidMajorVersionException()
DInvalidKeException.java49 public InvalidKeException(byte[] notifyData) { in InvalidKeException() argument
50 super(ERROR_TYPE_INVALID_KE_PAYLOAD, notifyData); in InvalidKeException()
DInvalidMessageIdException.java51 public InvalidMessageIdException(byte[] notifyData) { in InvalidMessageIdException() argument
52 super(ERROR_TYPE_INVALID_MESSAGE_ID, notifyData); in InvalidMessageIdException()
DInvalidSyntaxException.java65 public InvalidSyntaxException(byte[] notifyData) { in InvalidSyntaxException() argument
66 super(ERROR_TYPE_INVALID_SYNTAX, notifyData); in InvalidSyntaxException()
DAuthenticationFailedException.java56 public AuthenticationFailedException(byte[] notifyData) { in AuthenticationFailedException() argument
57 super(ERROR_TYPE_AUTHENTICATION_FAILED, notifyData); in AuthenticationFailedException()
DNoValidProposalChosenException.java59 public NoValidProposalChosenException(byte[] notifyData) { in NoValidProposalChosenException() argument
60 super(ERROR_TYPE_NO_PROPOSAL_CHOSEN, notifyData); in NoValidProposalChosenException()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolExceptionTest.java46 assertArrayEquals(new byte[] {(byte) 0x37}, payload.notifyData); in buildNotifyPayloadWithData()
56 assertArrayEquals(new byte[0], payload.notifyData); in buildNotifyPayloadWithoutData()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java519 private void replyErrorNotification(@NotifyType int notifyType, byte[] notifyData) { in replyErrorNotification() argument
521 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType, notifyData); in replyErrorNotification()
DIkeSessionStateMachine.java2989 mIsLocalBehindNat = !Arrays.equals(expectedLocalNatData, natDestPayload.notifyData); in handleNatDetection()
2998 if (Arrays.equals(expectedRemoteNatData, natPayload.notifyData)) { in handleNatDetection()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java862 assertEquals(0, notifyPayload.notifyData.length); in testReplyRekeyRequestDuringDeletion()
DIkeSessionStateMachineTest.java3804 assertArrayEquals(new byte[0], generatedPayload.notifyData); in testBuildEncryptedInformationalMessage()