1 17 package org.apache.geronimo.tomcat.util; 18 19 import java.io.Serializable ; 20 import java.security.PermissionCollection ; 21 import org.apache.geronimo.security.deploy.DefaultPrincipal; 22 23 public class SecurityHolder implements Serializable 24 { 25 26 private static final long serialVersionUID = 3761404231197734961L; 27 28 private String policyContextID; 29 private DefaultPrincipal defaultPrincipal; 30 private PermissionCollection checked; 31 private PermissionCollection excluded; 32 private String securityRealm; 33 private boolean security; 34 35 public SecurityHolder() 36 { 37 policyContextID = null; 38 defaultPrincipal = null; 39 checked = null; 40 excluded = null; 41 securityRealm = null; 42 security = false; 43 } 44 45 public String getSecurityRealm() { 46 return securityRealm; 47 } 48 49 public void setSecurityRealm(String securityRealm) { 50 this.securityRealm = securityRealm; 51 } 52 53 public PermissionCollection getChecked() 54 { 55 return checked; 56 } 57 58 public void setChecked(PermissionCollection checked) 59 { 60 this.checked = checked; 61 } 62 63 public DefaultPrincipal getDefaultPrincipal() 64 { 65 return defaultPrincipal; 66 } 67 68 public void setDefaultPrincipal(DefaultPrincipal defaultPrincipal) 69 { 70 this.defaultPrincipal = defaultPrincipal; 71 } 72 73 public PermissionCollection getExcluded() 74 { 75 return excluded; 76 } 77 78 public void setExcluded(PermissionCollection excluded) 79 { 80 this.excluded = excluded; 81 } 82 83 public String getPolicyContextID() 84 { 85 return policyContextID; 86 } 87 88 public void setPolicyContextID(String policyContextID) 89 { 90 this.policyContextID = policyContextID; 91 } 92 93 public boolean isSecurity() { 94 return security; 95 } 96 97 public void setSecurity(boolean security) { 98 this.security = security; 99 } 100 101 } 102 | Popular Tags |