1 16 17 package org.apache.cocoon.components.source.helpers; 18 19 25 public class SourceCredential { 26 27 private String principal = "guest"; 28 private String password = "guest"; 29 30 35 public SourceCredential(String principal) { 36 this.principal = principal; 37 } 38 39 45 public SourceCredential(String principal, String password) { 46 this.principal = principal; 47 this.password = password; 48 } 49 50 55 public void setPrincipal(String principal) { 56 this.principal = principal; 57 } 58 59 64 public String getPrincipal() { 65 return this.principal; 66 } 67 68 73 public void setPassword(String password) { 74 this.password = password; 75 } 76 77 82 public String getPassword() { 83 return this.password; 84 } 85 } 86 | Popular Tags |