1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class SecurityEntry extends AbsElement { 37 38 41 private String principalName = null; 42 43 46 private String user = null; 47 48 51 private String password = null; 52 53 56 private String encrypted = null; 57 58 61 public SecurityEntry() { 62 super(); 63 } 64 65 69 public String getPrincipalName() { 70 return principalName; 71 } 72 73 77 public void setPrincipalName(String principalName) { 78 this.principalName = principalName; 79 } 80 81 85 public String getUser() { 86 return user; 87 } 88 89 93 public void setUser(String user) { 94 this.user = user; 95 } 96 97 101 public String getPassword() { 102 return password; 103 } 104 105 109 public void setPassword(String password) { 110 this.password = password; 111 } 112 113 117 public String getEncrypted() { 118 return encrypted; 119 } 120 121 125 public void setEncrypted(String encrypted) { 126 this.encrypted = encrypted; 127 } 128 129 134 public String toXML(int indent) { 135 StringBuffer sb = new StringBuffer (); 136 sb.append(indent(indent)); 137 sb.append("<security-entry"); 138 sb.append(xmlAttribute(principalName, "principalName")); 139 sb.append(xmlAttribute(user, "user")); 140 sb.append(xmlAttribute(password, "password")); 141 sb.append(xmlAttribute(encrypted, "encrypted")); 142 sb.append("/>\n"); 143 144 return sb.toString(); 145 } 146 } 147 | Popular Tags |