From eeb95f5b76df6621c397ab64d83fcb6291b4f503 Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 3 Dec 2012 15:41:43 +0000 Subject: Make RegisterProvider static git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1154 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../java/at/gv/egiz/bku/local/webapp/MoccaContextListener.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'BKULocal') diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/MoccaContextListener.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/MoccaContextListener.java index 24ef75a9..8bccb187 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/MoccaContextListener.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/MoccaContextListener.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; public class MoccaContextListener implements ServletContextListener { - private Logger log = LoggerFactory.getLogger(MoccaContextListener.class); + private static Logger log = LoggerFactory.getLogger(MoccaContextListener.class); @Override public void contextDestroyed(ServletContextEvent sce) { @@ -64,7 +64,7 @@ public class MoccaContextListener implements ServletContextListener { } } - protected void registerProvider(Provider provider, int position) { + protected static void registerProvider(Provider provider, int position) { String name = provider.getName(); if (Security.getProvider(name) == null) { // register IAIK provider at first position @@ -79,8 +79,7 @@ public class MoccaContextListener implements ServletContextListener { } - protected void registerProviders() { - + protected static void registerProviders() { registerProvider(new IAIK(), 1); registerProvider(new ECCProvider(false), 2); -- cgit v1.2.3