The in-place TLS 1.3 upgrade of a v4 connection (docs/tech.md, "FCast v4"; decision D25): the sender is the TLS client, only TLS 1.3 is allowed, and the only certificate that is trusted is the one whose key has the pinned hash.
More...
|
| class | PinMismatch |
| | Names the pin as the reason a handshake failed.
|
| |
| class | PinTrustManager |
| | Trusts one key and nothing else.
|
| |
|
| static SSLSocket | upgrade (Socket plain, String host, int port, FCastPin pin, int timeoutMillis) throws IOException |
| | Wraps the connected socket in TLS 1.3 and runs the handshake.
|
| |
The in-place TLS 1.3 upgrade of a v4 connection (docs/tech.md, "FCast v4"; decision D25): the sender is the TLS client, only TLS 1.3 is allowed, and the only certificate that is trusted is the one whose key has the pinned hash.
The dates and the host name of the certificate are not checked (the receiver makes a self-signed certificate; its key is its identity); the TLS stack still verifies the handshake signature with that key, which proves that the peer holds the key.
◆ upgrade()
| static SSLSocket de.yaacc.fcast.protocol.FCastTls.upgrade |
( |
Socket | plain, |
|
|
String | host, |
|
|
int | port, |
|
|
FCastPin | pin, |
|
|
int | timeoutMillis ) throws IOException |
|
static |
Wraps the connected socket in TLS 1.3 and runs the handshake.
The plain socket must not have been read past the receiver's Version packet (the frame reader reads exactly the bytes of a frame). On any failure the socket is closed.
- Parameters
-
| timeoutMillis | the longest the handshake may take |
- Returns
- the TLS socket (the plain one is closed with it)
- Exceptions
-
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/fcast/protocol/FCastTls.java