public ProxyConfiguration(String name, int port, String noProxyFor, String userName, String password, boolean authNeeded) { this.name = name; this.port = port; this.userName = userName; this.password = Scrambler.scramble(password); this.authNeeded = authNeeded; this.noProxyFor = noProxyFor; }
/** * Main constructor * * @param username Username * @param password Clear-text password. Will be scrambled. */ public Credentials(String username, String password) { this.username = username; this.password = Scrambler.scramble(password); }
public void configure(String name, int port, String noProxyFor, String userName, String password, boolean authNeeded) { this.name = name; this.port = port; this.userName = userName; this.password = Scrambler.scramble(password); this.authNeeded = authNeeded; this.noProxyFor = noProxyFor; }
public ProxyConfiguration(String name, int port, String noProxyFor, String userName, String password, boolean authNeeded) { this.name = name; this.port = port; this.userName = userName; this.password = Scrambler.scramble(password); this.authNeeded = authNeeded; this.noProxyFor = noProxyFor; }
public ProxyConfiguration(String name, int port, String noProxyFor, String userName, String password, boolean authNeeded) { this.name = name; this.port = port; this.userName = userName; this.password = Scrambler.scramble(password); this.authNeeded = authNeeded; this.noProxyFor = noProxyFor; }
public PasswordProtectedAdapterCargo(String userName, String password) { this.password = null; this.passwordScrambled = Scrambler.scramble(password); this.userName = userName; }
private Object readResolve() { // backward compatibility if(passwordScrambled == null && password != null){ passwordScrambled = Scrambler.scramble(password); password = null; } return this; } }
public PasswordCredential(String userName, String password) { this.userName = userName; this.password = Scrambler.scramble(password); }
public PasswordCredential(String userName, String password) { this.userName = userName; this.password = Scrambler.scramble(password); }
@DataBoundConstructor public VirtualBoxCloud(String displayName, String url, String username, String password) { super(displayName); this.url = url; this.username = username; this.password = Scrambler.scramble(Util.fixEmptyAndTrim(password)); }
public PasswordCredential(String userName, String password) { this.userName = userName; this.password = Secret.fromString(Scrambler.scramble(password)); }
public SslClientCertificateCredential(File certificate, String password) throws IOException { this.password = Scrambler.scramble(password); this.certificate = Secret.fromString( new String(Base64.encode(FileUtils.readFileToByteArray(certificate)))); }
public SslClientCertificateCredential(File certificate, String password) throws IOException { this.password = Scrambler.scramble(password); this.certificate = Secret.fromString( new String(Base64.encode(FileUtils.readFileToByteArray(certificate)))); }
public SslClientCertificateCredential(File certificate, String password) throws IOException { this.password = Secret.fromString(Scrambler.scramble(password)); this.certificate = Secret.fromString(new String(Base64.encode(FileUtils.readFileToByteArray(certificate)))); }
public SVNUsernamePrivateKeysAuthenticationBuilder(SSHUserPrivateKey c) { username = c.getUsername(); Secret secret = c.getPassphrase(); this.passphrase = secret != null ? Scrambler.scramble(secret.getPlainText()) : null; privateKeys = new ArrayList<String>(c.getPrivateKeys()); }
@DataBoundConstructor public LDAPSecurityRealm(String server, String rootDN, String userSearchBase, String userSearch, String groupSearchBase, String managerDN, String managerPassword) { this.server = server.trim(); this.managerDN = fixEmpty(managerDN); this.managerPassword = Scrambler.scramble(fixEmpty(managerPassword)); if(fixEmptyAndTrim(rootDN)==null) rootDN= fixNull(inferRootDN(server)); this.rootDN = rootDN.trim(); this.userSearchBase = fixNull(userSearchBase).trim(); userSearch = fixEmptyAndTrim(userSearch); this.userSearch = userSearch!=null ? userSearch : "uid={0}"; this.groupSearchBase = fixEmptyAndTrim(groupSearchBase); }
public SVNUsernamePasswordAuthenticationBuilder(UsernamePasswordCredentials c) { this.username = c.getUsername(); this.password = Scrambler.scramble(c.getPassword().getPlainText()); }
@DataBoundConstructor public LDAPSecurityRealm(String server, String rootDN, String userSearchBase, String userSearch, String groupSearchBase, String managerDN, String managerPassword) { this.server = server.trim(); this.managerDN = fixEmpty(managerDN); this.managerPassword = Scrambler.scramble(fixEmpty(managerPassword)); if(fixEmptyAndTrim(rootDN)==null) rootDN= fixNull(inferRootDN(server)); this.rootDN = rootDN.trim(); this.userSearchBase = fixNull(userSearchBase).trim(); userSearch = fixEmptyAndTrim(userSearch); this.userSearch = userSearch!=null ? userSearch : "uid={0}"; this.groupSearchBase = fixEmptyAndTrim(groupSearchBase); }
@DataBoundConstructor public LDAPSecurityRealm(String server, String rootDN, String userSearchBase, String userSearch, String groupSearchBase, String managerDN, String managerPassword) { this.server = server.trim(); this.managerDN = fixEmpty(managerDN); this.managerPassword = Scrambler.scramble(fixEmpty(managerPassword)); if(fixEmptyAndTrim(rootDN)==null) rootDN= fixNull(inferRootDN(server)); this.rootDN = rootDN.trim(); this.userSearchBase = fixNull(userSearchBase).trim(); userSearch = fixEmptyAndTrim(userSearch); this.userSearch = userSearch!=null ? userSearch : "uid={0}"; this.groupSearchBase = fixEmptyAndTrim(groupSearchBase); }
@DataBoundConstructor public LDAPSecurityRealm(String server, String rootDN, String userSearchBase, String userSearch, String groupSearchBase, String managerDN, String managerPassword) { this.server = server.trim(); this.managerDN = fixEmpty(managerDN); this.managerPassword = Scrambler.scramble(fixEmpty(managerPassword)); if (fixEmptyAndTrim(rootDN) == null) { rootDN = fixNull(inferRootDN(server)); } this.rootDN = rootDN.trim(); this.userSearchBase = fixNull(userSearchBase).trim(); userSearch = fixEmptyAndTrim(userSearch); this.userSearch = userSearch != null ? userSearch : "uid={0}"; this.groupSearchBase = fixEmptyAndTrim(groupSearchBase); }