This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit bc318205f71d620fdf9a530b92d0015c3ce40b18
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Sep 9 10:24:27 2025 +0100

    Add getters for group and signature info.
    
    Silences IDE warnings and are be needed so the info can be used in the
    future.
---
 .../tomcat/util/net/TLSClientHelloExtractor.java       | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/java/org/apache/tomcat/util/net/TLSClientHelloExtractor.java 
b/java/org/apache/tomcat/util/net/TLSClientHelloExtractor.java
index 33546453d3..ed153c87da 100644
--- a/java/org/apache/tomcat/util/net/TLSClientHelloExtractor.java
+++ b/java/org/apache/tomcat/util/net/TLSClientHelloExtractor.java
@@ -264,6 +264,24 @@ public class TLSClientHelloExtractor {
     }
 
 
+    public List<Group> getClientSupportedGroups() {
+        if (result == ExtractorResult.COMPLETE || result == 
ExtractorResult.NOT_PRESENT) {
+            return clientSupportedGroups;
+        } else {
+            throw new 
IllegalStateException(sm.getString("sniExtractor.tooEarly"));
+        }
+    }
+
+
+    public List<SignatureAlgorithm> getClientSignatureAlgorithms() {
+        if (result == ExtractorResult.COMPLETE || result == 
ExtractorResult.NOT_PRESENT) {
+            return clientSignatureAlgorithms;
+        } else {
+            throw new 
IllegalStateException(sm.getString("sniExtractor.tooEarly"));
+        }
+    }
+
+
     private static ExtractorResult handleIncompleteRead(ByteBuffer bb) {
         if (bb.limit() == bb.capacity()) {
             // Buffer not big enough


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to