1 7 package org.jboss.security; 8 9 import java.security.AccessController ; 10 import javax.security.auth.AuthPermission ; 11 import javax.security.auth.callback.CallbackHandler ; 12 import javax.security.auth.login.AppConfigurationEntry ; 13 14 19 public class AuthenticationInfo 20 { 21 public static final AuthPermission GET_CONFIG_ENTRY_PERM = new AuthPermission ("getLoginConfiguration"); 22 public static final AuthPermission SET_CONFIG_ENTRY_PERM = new AuthPermission ("setLoginConfiguration"); 23 private AppConfigurationEntry [] loginModules; 24 private CallbackHandler callbackHandler; 25 26 29 public AppConfigurationEntry [] getAppConfigurationEntry() 30 { 31 AccessController.checkPermission(GET_CONFIG_ENTRY_PERM); 32 return loginModules; 33 } 34 37 public void setAppConfigurationEntry(AppConfigurationEntry [] loginModules) 38 { 39 AccessController.checkPermission(SET_CONFIG_ENTRY_PERM); 40 this.loginModules = loginModules; 41 } 42 43 45 public CallbackHandler getAppCallbackHandler() 46 { 47 return callbackHandler; 48 } 49 public void setAppCallbackHandler(CallbackHandler handler) 50 { 51 this.callbackHandler = handler; 52 } 53 } 54 | Popular Tags |