00001
00025 package org.objectweb.jonas.security.ws;
00026
00027 import org.objectweb.jonas.common.Log;
00028 import org.objectweb.jonas.security.AbsSecurityContextHelper;
00029 import org.objectweb.util.monolog.api.Logger;
00030
00037 public class SecurityContextHelper extends AbsSecurityContextHelper {
00038
00042 private static SecurityContextHelper instance = null;
00043
00047 private static final String WS_REALM_KEY = "jonas.service.security.ws.realm";
00048
00052 private static final String DEFAULT_WS_REALM = "memrlm_1";
00053
00057 private static Logger logger = Log.getLogger(Log.JONAS_WS_SECURITY_PREFIX);
00058
00062 private SecurityContextHelper() {
00063 }
00064
00068 public static SecurityContextHelper getInstance() {
00069 if (instance == null) {
00070 instance = new SecurityContextHelper();
00071 }
00072 return instance;
00073 }
00074
00078 protected Logger getLogger() {
00079 return logger;
00080 }
00081
00085 protected String getRealmKey() {
00086 return WS_REALM_KEY;
00087 }
00088
00092 protected String getRealmDefault() {
00093 return DEFAULT_WS_REALM;
00094 }
00095
00096 }