SecurityEntry.java

00001 
00027 package org.objectweb.jonas_rar.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class SecurityEntry extends AbsElement  {
00037 
00041     private String principalName = null;
00042 
00046     private String user = null;
00047 
00051     private String password = null;
00052 
00056     private String encrypted = null;
00057 
00061     public SecurityEntry() {
00062         super();
00063     }
00064 
00069     public String getPrincipalName() {
00070         return principalName;
00071     }
00072 
00077     public void setPrincipalName(String principalName) {
00078         this.principalName = principalName;
00079     }
00080 
00085     public String getUser() {
00086         return user;
00087     }
00088 
00093     public void setUser(String user) {
00094         this.user = user;
00095     }
00096 
00101     public String getPassword() {
00102         return password;
00103     }
00104 
00109     public void setPassword(String password) {
00110         this.password = password;
00111     }
00112 
00117     public String getEncrypted() {
00118         return encrypted;
00119     }
00120 
00125     public void setEncrypted(String encrypted) {
00126         this.encrypted = encrypted;
00127     }
00128 
00134     public String toXML(int indent) {
00135         StringBuffer sb = new StringBuffer();
00136         sb.append(indent(indent));
00137         sb.append("<security-entry");
00138         sb.append(xmlAttribute(principalName, "principalName"));
00139         sb.append(xmlAttribute(user, "user"));
00140         sb.append(xmlAttribute(password, "password"));
00141         sb.append(xmlAttribute(encrypted, "encrypted"));
00142         sb.append("/>\n");
00143 
00144         return sb.toString();
00145     }
00146 }

Generated on Tue Feb 15 15:05:57 2005 for JOnAS by  doxygen 1.3.9.1