Skip to content

Commit

Permalink
Make sure TSSV Logger gets initialized when the 2 args constructor is…
Browse files Browse the repository at this point in the history
… used which is the case when using an ACF other than the TS one.

Signed-off-by: Jean-Louis Monteiro <jlmonteiro@tomitribe.com>
  • Loading branch information
jeanouii committed Apr 7, 2021
1 parent f4102ff commit 51482ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -41,7 +41,7 @@
*/
public class TSAuthConfigProviderServlet
implements jakarta.security.auth.message.config.AuthConfigProvider {
private static TSLogger logger = TSLogger.getTSLogger(JASPICData.LOGGER_NAME);
private static TSLogger logger;

private HashMap serverAuthConfigMap = new HashMap();

Expand Down Expand Up @@ -131,9 +131,9 @@ public ClientAuthConfig getClientAuthConfig(String layer, String appContext,
CallbackHandler handler) throws AuthException {

logger.log(Level.INFO,
"WARNING: shouldnt get into ClientAuthConfig() for servlet profile");
"WARNING: shouldn't get into ClientAuthConfig() for servlet profile");

// shouldnt get in here for servlet profile
// shouldn't get in here for servlet profile
return (ClientAuthConfig) null;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -51,7 +51,7 @@ public class TSAuthConfigProviderStandalone
// this is a default string used for Persistent Registration description
public static String DESC_KEY = "description_key";

private static TSLogger logger = TSLogger.getTSLogger(JASPICData.LOGGER_NAME);
private static TSLogger logger;

private HashMap serverAuthConfigMap = new HashMap();

Expand Down

0 comments on commit 51482ac

Please sign in to comment.