1 package de.dlr.bt.stc.source; 2 3 import org.apache.commons.configuration2.HierarchicalConfiguration; 4 5 import de.dlr.bt.stc.config.ConfiguredObject; 6 import lombok.EqualsAndHashCode; 7 import lombok.ToString; 8 9 @EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = false) 10 @ToString(onlyExplicitlyIncluded = true) 11 public class CredentialsCfg extends ConfiguredObject { 12 13 public CredentialsCfg(HierarchicalConfiguration<?> config) { 14 super(config); 15 } 16 17 @EqualsAndHashCode.Include 18 @ToString.Include 19 public String getUsername() { 20 return config.getString("username"); 21 } 22 23 @EqualsAndHashCode.Include 24 @ToString.Include 25 public String getPassword() { 26 return config.getString("password"); 27 } 28 29 }