2 // Getdown - application installer, patcher and launcher
3 // Copyright (C) 2004-2018 Getdown authors
4 // https://github.com/threerings/getdown/blob/master/LICENSE
6 package com.threerings.getdown.spi;
9 * A service provider interface that handles the storage of proxy credentials.
11 public interface ProxyAuth
13 /** Credentials for a proxy server. */
14 public static class Credentials {
15 public final String username;
16 public final String password;
17 public Credentials (String username, String password) {
18 this.username = username;
19 this.password = password;
24 * Loads the credentials for the app installed in {@code appDir}.
26 public Credentials loadCredentials (String appDir);
29 * Encrypts and saves the credentials for the app installed in {@code appDir}.
31 public void saveCredentials (String appDir, String username, String password);