summaryrefslogtreecommitdiff
path: root/BKULocal/src
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-12-03 15:41:43 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-12-03 15:41:43 +0000
commiteeb95f5b76df6621c397ab64d83fcb6291b4f503 (patch)
treedf64c97857f180c69a540870006464279d3dc13f /BKULocal/src
parent01b02f8f787a2f91737632134b2d4e227741124c (diff)
downloadmocca-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
Diffstat (limited to 'BKULocal/src')
-rw-r--r--BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/MoccaContextListener.java7
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);