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 <lachlan@webtide.com>
This commit is contained in:
lachan-roberts 2018-08-08 11:06:00 +10:00
parent 3029f30d2b
commit e285bc52c4
1 changed files with 15 additions and 0 deletions

View File

@ -168,4 +168,19 @@ public class JaspiAuthenticatorFactory extends DefaultAuthenticatorFactory
return "server"; 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);
}
} }