/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayload.java | 220 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/ |
D | IkeNotifyPayloadTest.java | 65 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/ |
D | IkeProtocolException.java | 139 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/ |
D | UnsupportedCriticalPayloadException.java | 59 public UnsupportedCriticalPayloadException(byte[] notifyData) { in UnsupportedCriticalPayloadException() argument 60 super(ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, notifyData); in UnsupportedCriticalPayloadException() 62 payloadTypeList.add(byteArrayToInteger(notifyData)); in UnsupportedCriticalPayloadException()
|
D | UnrecognizedIkeProtocolException.java | 31 public UnrecognizedIkeProtocolException(int errorType, byte[] notifyData) { in UnrecognizedIkeProtocolException() argument 32 super(errorType, notifyData); in UnrecognizedIkeProtocolException()
|
D | TsUnacceptableException.java | 42 public TsUnacceptableException(byte[] notifyData) { in TsUnacceptableException() argument 43 super(ERROR_TYPE_TS_UNACCEPTABLE, notifyData); in TsUnacceptableException()
|
D | TemporaryFailureException.java | 46 public TemporaryFailureException(byte[] notifyData) { in TemporaryFailureException() argument 47 super(ERROR_TYPE_TEMPORARY_FAILURE, notifyData); in TemporaryFailureException()
|
D | InvalidMajorVersionException.java | 48 public InvalidMajorVersionException(byte[] notifyData) { in InvalidMajorVersionException() argument 49 super(ERROR_TYPE_INVALID_MAJOR_VERSION, notifyData); in InvalidMajorVersionException()
|
D | InvalidKeException.java | 49 public InvalidKeException(byte[] notifyData) { in InvalidKeException() argument 50 super(ERROR_TYPE_INVALID_KE_PAYLOAD, notifyData); in InvalidKeException()
|
D | InvalidMessageIdException.java | 51 public InvalidMessageIdException(byte[] notifyData) { in InvalidMessageIdException() argument 52 super(ERROR_TYPE_INVALID_MESSAGE_ID, notifyData); in InvalidMessageIdException()
|
D | InvalidSyntaxException.java | 65 public InvalidSyntaxException(byte[] notifyData) { in InvalidSyntaxException() argument 66 super(ERROR_TYPE_INVALID_SYNTAX, notifyData); in InvalidSyntaxException()
|
D | AuthenticationFailedException.java | 56 public AuthenticationFailedException(byte[] notifyData) { in AuthenticationFailedException() argument 57 super(ERROR_TYPE_AUTHENTICATION_FAILED, notifyData); in AuthenticationFailedException()
|
D | NoValidProposalChosenException.java | 59 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/ |
D | IkeProtocolExceptionTest.java | 46 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/ |
D | ChildSessionStateMachine.java | 519 private void replyErrorNotification(@NotifyType int notifyType, byte[] notifyData) { in replyErrorNotification() argument 521 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType, notifyData); in replyErrorNotification()
|
D | IkeSessionStateMachine.java | 2989 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/ |
D | ChildSessionStateMachineTest.java | 862 assertEquals(0, notifyPayload.notifyData.length); in testReplyRekeyRequestDuringDeletion()
|
D | IkeSessionStateMachineTest.java | 3804 assertArrayEquals(new byte[0], generatedPayload.notifyData); in testBuildEncryptedInformationalMessage()
|