From e285bc52c4965a923730e903bb2402615e7f1c52 Mon Sep 17 00:00:00 2001 From: lachan-roberts Date: Wed, 8 Aug 2018 11:06:00 +1000 Subject: [PATCH] Issue #321 - DeadCode JaspiAuthenticatorFactory.findServerName Server param not used added back a deprecated findServerName method with the previous signature which calls the new method Signed-off-by: lachan-roberts --- .../security/jaspi/JaspiAuthenticatorFactory.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java index bddf40871b5..16af3d04811 100644 --- a/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java +++ b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java @@ -168,4 +168,19 @@ public class JaspiAuthenticatorFactory extends DefaultAuthenticatorFactory return "server"; } + + /* ------------------------------------------------------------ */ + /** Find a servername. + * If {@link #setServerName(String)} has not been called, then + * use the name of the a principal in the service subject. + * If not found, return "server". + * @param server the server to use + * @param subject not used + * @return the server name from the subject of the server (or default value if not found in subject or principals) + */ + @Deprecated + protected String findServerName(Server server, Subject subject) + { + return findServerName(server); + } }