1 25 package org.objectweb.jonas.security.ws; 26 27 import org.objectweb.jonas.common.Log; 28 import org.objectweb.jonas.security.AbsSecurityContextHelper; 29 import org.objectweb.util.monolog.api.Logger; 30 31 37 public class SecurityContextHelper extends AbsSecurityContextHelper { 38 39 42 private static SecurityContextHelper instance = null; 43 44 47 private static final String WS_REALM_KEY = "jonas.service.security.ws.realm"; 48 49 52 private static final String DEFAULT_WS_REALM = "memrlm_1"; 53 54 57 private static Logger logger = Log.getLogger(Log.JONAS_WS_SECURITY_PREFIX); 58 59 62 private SecurityContextHelper() { 63 } 64 65 68 public static SecurityContextHelper getInstance() { 69 if (instance == null) { 70 instance = new SecurityContextHelper(); 71 } 72 return instance; 73 } 74 75 78 protected Logger getLogger() { 79 return logger; 80 } 81 82 85 protected String getRealmKey() { 86 return WS_REALM_KEY; 87 } 88 89 92 protected String getRealmDefault() { 93 return DEFAULT_WS_REALM; 94 } 95 96 } 97 | Popular Tags |