1 27 package org.objectweb.jonas_client.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 35 36 public class JonasSecurity extends AbsElement { 37 38 41 private String jaasfile = null; 42 43 46 private String jaasentry = null; 47 48 51 private String username = null; 52 53 56 private String password = null; 57 58 61 public JonasSecurity() { 62 super(); 63 } 64 65 68 public String getJaasfile() { 69 return jaasfile; 70 } 71 72 76 public void setJaasfile(String jaasfile) { 77 this.jaasfile = jaasfile; 78 } 79 80 83 public String getJaasentry() { 84 return jaasentry; 85 } 86 87 91 public void setJaasentry(String jaasentry) { 92 this.jaasentry = jaasentry; 93 } 94 95 98 public String getUsername() { 99 return username; 100 } 101 102 106 public void setUsername(String username) { 107 this.username = username; 108 } 109 110 113 public String getPassword() { 114 return password; 115 } 116 117 121 public void setPassword(String password) { 122 this.password = password; 123 } 124 125 130 public String toXML(int indent) { 131 StringBuffer sb = new StringBuffer (); 132 sb.append(indent(indent)); 133 sb.append("<jonas-security>\n"); 134 135 indent += 2; 136 137 sb.append(xmlElement(jaasfile, "jaasfile", indent)); 139 sb.append(xmlElement(jaasentry, "jaasentry", indent)); 141 sb.append(xmlElement(username, "username", indent)); 143 sb.append(xmlElement(password, "password", indent)); 145 indent -= 2; 146 sb.append(indent(indent)); 147 sb.append("</jonas-security>\n"); 148 149 return sb.toString(); 150 } 151 } | Popular Tags |