1 17 package org.apache.geronimo.security.deployment; 18 19 import java.util.Map ; 20 21 import org.apache.geronimo.security.deploy.DefaultPrincipal; 22 23 26 public class SecurityConfiguration { 27 28 private final Map principalRoleMap; 29 private final Map roleDesignates; 30 private final DefaultPrincipal defaultPrincipal; 31 private final String defaultRole; 32 private final boolean doAsCurrentCaller; 33 private final boolean isUseContextHandler; 34 35 public SecurityConfiguration(Map principalRoleMap, Map roleDesignates, DefaultPrincipal defaultPrincipal, String defaultRole, boolean doAsCurrentCaller, boolean useContextHandler) { 36 this.principalRoleMap = principalRoleMap; 37 this.roleDesignates = roleDesignates; 38 this.defaultPrincipal = defaultPrincipal; 39 this.defaultRole = defaultRole; 40 this.doAsCurrentCaller = doAsCurrentCaller; 41 isUseContextHandler = useContextHandler; 42 } 43 44 public Map getPrincipalRoleMap() { 45 return principalRoleMap; 46 } 47 48 public Map getRoleDesignates() { 49 return roleDesignates; 50 } 51 52 public DefaultPrincipal getDefaultPrincipal() { 53 return defaultPrincipal; 54 } 55 56 public String getDefaultRole() { 57 return defaultRole; 58 } 59 60 public boolean isDoAsCurrentCaller() { 61 return doAsCurrentCaller; 62 } 63 64 public boolean isUseContextHandler() { 65 return isUseContextHandler; 66 } 67 } 68 | Popular Tags |