| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the length of the local connection ids expected to be found in incoming short header packetsReturns the length of the local connection ids expected to be found in incoming short header packets. |
| public QuicTLSEngine | Returns: the TLS engine associated with this contextReturns the TLS engine associated with this context |
| public long | Returns: the largest outgoing packet number acknowledged by the peer in the given packet number spacethe packet number space packetSpaceReturns the largest outgoing packet number acknowledged by the peer in the given packet number space. |
| public default long | Returns: the largest outgoing packet number acknowledged by the peer in the packet number space corresponding to the given packet typethe packet type packetTypeReturns the largest outgoing packet number acknowledged by the peer in the packet number space corresponding to the given packet type. |
| public long | Returns: the largest incoming packet number successfully processed in the given packet number spacethe packet number space packetSpaceReturns the largest incoming packet number successfully processed in the given packet number space. |
| public default long | Returns: the largest incoming packet number successfully processed in the packet number space corresponding to the given packet typethe packet type packetTypeReturns the largest incoming packet number successfully processed in the packet number space corresponding to the given packet type. |
| public default int | Returns: The minimum payload size for short packet payloadsthe length of the destination
connectionId included in the packet destConnectionIdLength)Returns The minimum payload size for short packet payloads. |
| public QuicConnectionId | Returns: the original destination connection id, required for calculating the retry integrity tagReturns the original destination connection id, required for calculating the retry integrity tag. |
| public QuicPacket | Returns: the packet reada byte buffer containing a non encrypted packet src)Reads an encrypted packet from the given byte buffer. |
| public boolean | Returns: true if token is valid, false otherwisedestination connection ID found in the packet destinationID, byte[] token to verify token)Checks if the provided token is valid for the given context and connection ID. |
| public int | Returns: the number of bytes writtenthe outgoing packet to write packet, ByteBuffer the byte buffer to write the packet into buffer)Writes the given outgoing packet in the given byte buffer. |
| connectionIdLength | back to summary |
|---|---|
| public int connectionIdLength() Returns the length of the local connection ids expected to be found in incoming short header packets.
| |
| getTLSEngine | back to summary |
|---|---|
| public QuicTLSEngine getTLSEngine() Returns the TLS engine associated with this context
| |
| largestAckedPN | back to summary |
|---|---|
| public long largestAckedPN(QuicPacket. Returns the largest outgoing packet number acknowledged by the peer in the given packet number space. API Note This method is used when encoding the packet number of an outgoing packet.
| |
| largestAckedPN | back to summary |
|---|---|
| public default long largestAckedPN(QuicPacket. Returns the largest outgoing packet number acknowledged by the peer in the packet number space corresponding to the given packet type. This is equivalent to calling:
API Note This method is used when encoding the packet number of an outgoing packet.
| |
| largestProcessedPN | back to summary |
|---|---|
| public long largestProcessedPN(QuicPacket. Returns the largest incoming packet number successfully processed in the given packet number space. API Note This method is used when decoding the packet number of an incoming packet.
| |
| largestProcessedPN | back to summary |
|---|---|
| public default long largestProcessedPN(QuicPacket. Returns the largest incoming packet number successfully processed in the packet number space corresponding to the given packet type. This is equivalent to calling:
API Note This method is used when decoding the packet number of an incoming packet.
| |
| minShortPacketPayloadSize | back to summary |
|---|---|
| public default int minShortPacketPayloadSize(int destConnectionIdLength) Returns The minimum payload size for short packet payloads. . Padding will be added to match that size if needed.
| |
| originalServerConnId | back to summary |
|---|---|
| public QuicConnectionId originalServerConnId() Returns the original destination connection id, required for calculating the retry integrity tag. This is only of interest when protecting/unprotecting a Retry Packet.
| |
| parsePacket | back to summary |
|---|---|
| public QuicPacket parsePacket(ByteBuffer src) throws IOException, QuicKeyUnavailableException, QuicTransportException Reads an encrypted packet from the given byte buffer. This method moves the position of the byte buffer.
| |
| verifyToken | back to summary |
|---|---|
| public boolean verifyToken(QuicConnectionId destinationID, byte[] token) Checks if the provided token is valid for the given context and connection ID.
| |
| writePacket | back to summary |
|---|---|
| public int writePacket(QuicPacket packet, ByteBuffer buffer) throws QuicKeyUnavailableException, QuicTransportException Writes the given outgoing packet in the given byte buffer. This method moves the position of the byte buffer.
| |