diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-12-03 15:41:43 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-12-03 15:41:43 +0000 |
commit | eeb95f5b76df6621c397ab64d83fcb6291b4f503 (patch) | |
tree | df64c97857f180c69a540870006464279d3dc13f | |
parent | 01b02f8f787a2f91737632134b2d4e227741124c (diff) | |
download | mocca-eeb95f5b76df6621c397ab64d83fcb6291b4f503.tar.gz mocca-eeb95f5b76df6621c397ab64d83fcb6291b4f503.tar.bz2 mocca-eeb95f5b76df6621c397ab64d83fcb6291b4f503.zip |
Make RegisterProvider static
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1154 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
-rw-r--r-- | BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/MoccaContextListener.java | 7 |
1 files changed, 3 insertions, 4 deletions
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); |