GeezerVison is showing github.com — Auto-port 5.0: Expose `isSessionReused` as public API (#18555) · netty/netty@43a2276
File tree
Expand file treeCollapse file tree
Open diff view settings
handler/src/main/java/io/netty/handler/ssl
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -483,7 +483,11 @@ final synchronized SecretKeySpec masterKey() { |
483 | 483 | return new SecretKeySpec(SSL.getMasterKey(ssl), "AES"); |
484 | 484 | } |
485 | 485 |
|
486 | | - synchronized boolean isSessionReused() { |
| 486 | + /** |
| 487 | + * Returns whether the completed handshake reused a TLS session. |
| 488 | + * Returns false if this engine has been shut down. |
| 489 | + */ |
| 490 | + public synchronized boolean isSessionReused() { |
487 | 491 | if (destroyed) { |
488 | 492 | return false; |
489 | 493 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: pom.xml +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1032 | 1032 | <new>method void io.netty.handler.codec.http3.Http3ClientConnectionHandler::initUnidirectionalStream(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.quic.QuicStreamChannel)</new> |
1033 | 1033 | <justification>Allow applications to customize initialization of unidirectional streams by subclassing.</justification> |
1034 | 1034 | </item> |
| 1035 | + <item> |
| 1036 | + <ignore>true</ignore> |
| 1037 | + <code>java.method.visibilityIncreased</code> |
| 1038 | + <new>method boolean io.netty.handler.ssl.ReferenceCountedOpenSslEngine::isSessionReused()</new> |
| 1039 | + <justification>Allow applications to inspect OpenSSL session reuse without accessing the native SSL pointer.</justification> |
| 1040 | + </item> |
1035 | 1041 | <item> |
1036 | 1042 | <ignore>true</ignore> |
1037 | 1043 | <code>java.class.externalClassExposedInAPI</code> |
|