1 7 package org.jboss.ejb3.dd; 8 9 16 public class SecurityIdentity 17 { 18 private String id; 19 20 private boolean useCallerIdentity = false; 21 22 private String runAs; 23 24 private String runAsPrincipal; 25 26 public String getId() 27 { 28 return id; 29 } 30 31 public void setId(String id) 32 { 33 this.id = id; 34 } 35 36 public boolean isUseCallerIdentity() 37 { 38 return useCallerIdentity; 39 } 40 41 public void setUseCallerIdentity(boolean useCallerIdentity) 42 { 43 this.useCallerIdentity = useCallerIdentity; 44 } 45 46 public String getRunAs() 47 { 48 return runAs; 49 } 50 51 public void setRunAs(String runAs) 52 { 53 this.runAs = runAs; 54 } 55 56 public String getRunAsPrincipal() 57 { 58 return runAsPrincipal; 59 } 60 61 public void setRunAsPrincipal(String runAsPrincipal) 62 { 63 this.runAsPrincipal = runAsPrincipal; 64 } 65 66 public String toString() 67 { 68 StringBuffer sb = new StringBuffer (100); 69 sb.append("["); 70 sb.append("ejbName=").append(id); 71 sb.append("]"); 72 return sb.toString(); 73 } 74 75 } 76 | Popular Tags |