| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final int | |
| private static final int | |
| private static final Random | |
| private final byte[] | |
| private static final String | |
| private final String | |
| private final Key | |
| private final AtomicLong | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the connection ID length used by this instanceThe connection ID length used by this Quic instance. |
| private int | |
| private int | |
| public static QuicConnectionIdFactory | |
| public int | |
| public long | |
| public static QuicConnectionIdFactory | |
| private boolean | |
| public QuicConnectionId | |
| public byte[] | |
| public long | |
| private long | |
| public ByteBuffer | Returns: stateless reset datagram payload, or nullthe destination connection id that was received on the packet connId, int maximum length of the stateless reset packet length)Checks if |
| public byte[] | Returns: stateless reset token for the given connection IDconnection ID connectionId)Returns a stateless reset token for the given connection ID |
| public QuicConnectionId | Returns: a new QuicConnectionId if the buffer can contain a connection id generated by this instance,null
otherwise.A buffer that delimits a connection id. buffer)Quick validation to see if the buffer can contain a connection id generated by this instance. |
| private static int |
| CLIENT_DESC | back to summary |
|---|---|
| private static final String CLIENT_DESC | |
| connectionIdLength | back to summary |
|---|---|
| private final int connectionIdLength | |
| MIN_CONNECTION_ID_LENGTH | back to summary |
|---|---|
| private static final int MIN_CONNECTION_ID_LENGTH | |
| RANDOM | back to summary |
|---|---|
| private static final Random RANDOM | |
| scrambler | back to summary |
|---|---|
| private final byte[] scrambler | |
| SERVER_DESC | back to summary |
|---|---|
| private static final String SERVER_DESC | |
| simpleDesc | back to summary |
|---|---|
| private final String simpleDesc | |
| statelessTokenKey | back to summary |
|---|---|
| private final Key statelessTokenKey | |
| tokens | back to summary |
|---|---|
| private final AtomicLong tokens | |
| wrapped | back to summary |
|---|---|
| private volatile boolean wrapped | |
| QuicConnectionIdFactory | back to summary |
|---|---|
| private QuicConnectionIdFactory(String simpleDesc) | |
| connectionIdLength | back to summary |
|---|---|
| public int connectionIdLength() The connection ID length used by this Quic instance. This is the source connection id length for outgoing packets, and the destination connection id length for incoming packets.
| |
| extractConnectionIdLength | back to summary |
|---|---|
| private int extractConnectionIdLength(byte b) | |
| extractTokenLength | back to summary |
|---|---|
| private int extractTokenLength(byte b) | |
| getClient | back to summary |
|---|---|
| public static QuicConnectionIdFactory getClient() | |
| getConnectionIdLength | back to summary |
|---|---|
| public int getConnectionIdLength(byte[] bytes) | |
| getConnectionIdToken | back to summary |
|---|---|
| public long getConnectionIdToken(byte[] bytes) | |
| getServer | back to summary |
|---|---|
| public static QuicConnectionIdFactory getServer() | |
| isValidToken | back to summary |
|---|---|
| private boolean isValidToken(long token) | |
| newConnectionId | back to summary |
|---|---|
| public QuicConnectionId newConnectionId() Creates a new connection ID for a connection.
| |
| newConnectionId | back to summary |
|---|---|
| public byte[] newConnectionId(int length, long token) | |
| newToken | back to summary |
|---|---|
| public long newToken() | |
| peekConnectionIdToken | back to summary |
|---|---|
| private long peekConnectionIdToken(ByteBuffer bytes) | |
| statelessReset | back to summary |
|---|---|
| public ByteBuffer statelessReset(ByteBuffer connId, int length) Checks if
| |
| statelessTokenFor | back to summary |
|---|---|
| public byte[] statelessTokenFor(QuicConnectionId connectionId) Returns a stateless reset token for the given connection ID
| |
| unsafeConnectionIdFor | back to summary |
|---|---|
| public QuicConnectionId unsafeConnectionIdFor(ByteBuffer buffer) Quick validation to see if the buffer can contain a connection
id generated by this instance. The byte buffer is expected to have
its position set at the start
of the connection id, and its limit
at the end. In other words, This method does not advance the buffer position, and returns a connection id that wraps the given buffer. The returned connection id is only safe to use as long as the buffer is not modified. It is usually only used temporarily as a lookup key
to locate an existing
| |
| variableLengthLength | back to summary |
|---|---|
| private static int variableLengthLength(long token) | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final long |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| simpleDesc | back to summary |
|---|---|
| private final String simpleDesc | |
| token | back to summary |
|---|---|
| private final long token | |
| QuicLocalConnectionId | back to summary |
|---|---|
| private QuicLocalConnectionId(long token, String simpleDesc, byte[] bytes) | |
| QuicLocalConnectionId | back to summary |
|---|---|
| private QuicLocalConnectionId(ByteBuffer buffer, long token, String simpleDesc) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |