1 23 24 package com.sun.enterprise.admin.server.core.mbean.config; 25 26 import javax.management.*; 28 29 import com.sun.enterprise.config.ConfigException; 31 import com.sun.enterprise.config.serverbeans.ServerTags; 32 import com.sun.enterprise.config.serverbeans.ServerXPathHelper; 33 34 35 import com.sun.enterprise.admin.common.ObjectNames; 37 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 38 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 39 40 46 public class ManagedAuthRealm extends ConfigMBeanBase implements ConfigAttributeName.AuthRealm 47 { 48 51 private static final String [][] MAPLIST = 52 { 53 {kName , ATTRIBUTE + ServerTags.NAME}, 54 {kClassName , ATTRIBUTE + ServerTags.CLASSNAME}, 55 }; 56 59 private static final String [] ATTRIBUTES = 60 { 61 kName + ", String, R" , 62 kClassName + ", String, RW" , 63 }; 64 67 private static final String [] OPERATIONS = null; 68 69 70 73 public ManagedAuthRealm() throws MBeanConfigException 74 { 75 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 76 } 77 78 82 public ManagedAuthRealm(String instanceName, String authRealmId) throws MBeanConfigException 83 { 84 this(); 85 this.initialize(ObjectNames.kAuthRealmType, new String []{instanceName, authRealmId}); 86 } 87 } | Popular Tags |