1 7 package org.jboss.security.plugins; 8 9 import java.security.Principal ; 10 import java.util.List ; 11 import javax.management.ObjectName ; 12 13 import org.jboss.mx.util.ObjectNameFactory; 14 import org.jboss.security.SecurityDomain; 15 import org.jboss.system.ServiceMBean; 16 17 23 public interface JaasSecurityManagerServiceMBean 24 extends ServiceMBean, SecurityManagerMBean 25 { 26 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.security:service=JaasSecurityManager"); 27 28 31 String getSecurityManagerClassName(); 32 33 41 void setSecurityManagerClassName(String className) 42 throws ClassNotFoundException , ClassCastException ; 43 44 47 String getSecurityProxyFactoryClassName(); 48 49 52 void setSecurityProxyFactoryClassName(String className) 53 throws ClassNotFoundException ; 54 55 59 public String getCallbackHandlerClassName(); 60 63 public void setCallbackHandlerClassName(String className) 64 throws ClassNotFoundException ; 65 66 70 String getAuthenticationCacheJndiName(); 71 72 81 void setAuthenticationCacheJndiName(String jndiName); 82 83 87 int getDefaultCacheTimeout(); 88 89 94 void setDefaultCacheTimeout(int timeoutInSecs); 95 96 99 int getDefaultCacheResolution(); 100 101 107 void setDefaultCacheResolution(int resInSecs); 108 109 117 public void setCacheTimeout(String securityDomain, int timeoutInSecs, int resInSecs); 118 119 123 void flushAuthenticationCache(String securityDomain); 124 125 131 void flushAuthenticationCache(String securityDomain, Principal user); 132 133 137 List getAuthenticationCachePrincipals(String securityDomain); 138 139 142 void registerSecurityDomain(String securityDomain, SecurityDomain instance); 143 144 148 String getDefaultUnauthenticatedPrincipal(); 149 150 154 void setDefaultUnauthenticatedPrincipal(String principal); 155 } 156 | Popular Tags |