1 23 24 package com.sun.appserv.security; 25 26 import java.util.*; 27 28 import com.sun.enterprise.security.auth.realm.*; 29 30 import java.util.logging.Logger ; 31 import java.util.logging.Level ; 32 import com.sun.logging.LogDomains; 33 import com.sun.enterprise.util.i18n.StringManager; 34 35 36 47 public abstract class AppservRealm extends Realm 48 { 49 public static final String JAAS_CONTEXT_PARAM="jaas-context"; 50 51 protected static Logger _logger = 52 LogDomains.getLogger(LogDomains.SECURITY_LOGGER); 53 protected static StringManager sm = 54 StringManager.getManager("com.sun.enterprise.security.auth.realm"); 55 56 57 68 public AuthenticationHandler getAuthenticationHandler() 69 { 70 _logger.warning("iasrealm.noauth"); 71 return null; 72 } 73 74 75 86 public Enumeration getUserNames() throws BadRealmException 87 { 88 String msg = sm.getString("iasrealm.notsupported"); 89 throw new BadRealmException(msg); 90 } 91 92 93 106 public User getUser(String name) 107 throws NoSuchUserException, BadRealmException 108 { 109 String msg = sm.getString("iasrealm.notsupported"); 110 throw new BadRealmException(msg); 111 } 112 113 114 125 public Enumeration getGroupNames() 126 throws BadRealmException 127 { 128 String msg = sm.getString("iasrealm.notsupported"); 129 throw new BadRealmException(msg); 130 } 131 132 133 143 public void refresh() throws BadRealmException 144 { 145 String msg = sm.getString("iasrealm.notsupported"); 146 throw new BadRealmException(msg); 147 } 148 } 149 | Popular Tags |