class DefaultWagonManager extends org.apache.maven.repository.legacy.DefaultWagonManager
        implements WagonManager {

    // NOTE: This must use a different field name than in the super class or IoC has no chance to inject the loggers
    @Inject
    private Logger log;

    @Inject
    private LegacySupport legacySupport;

    @Inject
    private SettingsDecrypter settingsDecrypter;

    @Inject
    private MirrorSelector mirrorSelector;

    @Inject
    private ArtifactRepositoryFactory artifactRepositoryFactory;

    public AuthenticationInfo getAuthenticationInfo(String id) {<FILL_FUNCTION_BODY>}

    public ProxyInfo getProxy(String protocol) {
        MavenSession session = legacySupport.getSession();

        if (session != null && protocol != null) {
            MavenExecutionRequest request = session.getRequest();

            if (request != null) {
                List<Proxy> proxies = request.getProxies();

                if (proxies != null) {
                    for (Proxy proxy : proxies) {
                        if (proxy.isActive() && protocol.equalsIgnoreCase(proxy.getProtocol())) {
                            SettingsDecryptionResult result =
                                    settingsDecrypter.decrypt(new DefaultSettingsDecryptionRequest(proxy));
                            proxy = result.getProxy();

                            ProxyInfo proxyInfo = new ProxyInfo();
                            proxyInfo.setHost(proxy.getHost());
                            proxyInfo.setType(proxy.getProtocol());
                            proxyInfo.setPort(proxy.getPort());
                            proxyInfo.setNonProxyHosts(proxy.getNonProxyHosts());
                            proxyInfo.setUserName(proxy.getUsername());
                            proxyInfo.setPassword(proxy.getPassword());

                            return proxyInfo;
                        }
                    }
                }
            }
        }

        return null;
    }

    public void getArtifact(Artifact artifact, ArtifactRepository repository)
            throws TransferFailedException, ResourceDoesNotExistException {
        getArtifact(artifact, repository, null, false);
    }

    public void getArtifact(Artifact artifact, List<ArtifactRepository> remoteRepositories)
            throws TransferFailedException, ResourceDoesNotExistException {
        getArtifact(artifact, remoteRepositories, null, false);
    }

    @Deprecated
    public ArtifactRepository getMirrorRepository(ArtifactRepository repository) {

        Mirror mirror = mirrorSelector.getMirror(
                repository, legacySupport.getSession().getSettings().getMirrors());

        if (mirror != null) {
            String id = mirror.getId();
            if (id == null) {
                // TODO this should be illegal in settings.xml
                id = repository.getId();
            }

            log.debug("Using mirror: " + mirror.getUrl() + " (id: " + id + ")");

            repository = artifactRepositoryFactory.createArtifactRepository(
                    id, mirror.getUrl(), repository.getLayout(), repository.getSnapshots(), repository.getReleases());
        }
        return repository;
    }
}

        MavenSession session = legacySupport.getSession();

        if (session != null && id != null) {
            MavenExecutionRequest request = session.getRequest();

            if (request != null) {
                List<Server> servers = request.getServers();

                if (servers != null) {
                    for (Server server : servers) {
                        if (id.equalsIgnoreCase(server.getId())) {
                            SettingsDecryptionResult result =
                                    settingsDecrypter.decrypt(new DefaultSettingsDecryptionRequest(server));
                            server = result.getServer();

                            AuthenticationInfo authInfo = new AuthenticationInfo();
                            authInfo.setUserName(server.getUsername());
                            authInfo.setPassword(server.getPassword());
                            authInfo.setPrivateKey(server.getPrivateKey());
                            authInfo.setPassphrase(server.getPassphrase());

                            return authInfo;
                        }
                    }
                }
            }
        }

        // empty one to prevent NPE
        return new AuthenticationInfo();
    
<methods>public non-sealed void <init>() ,public void getArtifact(org.apache.maven.artifact.Artifact, org.apache.maven.artifact.repository.ArtifactRepository, org.apache.maven.wagon.events.TransferListener, boolean) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException,public void getArtifact(org.apache.maven.artifact.Artifact, List<org.apache.maven.artifact.repository.ArtifactRepository>, org.apache.maven.wagon.events.TransferListener, boolean) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException,public void getArtifactMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata, org.apache.maven.artifact.repository.ArtifactRepository, java.io.File, java.lang.String) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException,public void getArtifactMetadataFromDeploymentRepository(org.apache.maven.artifact.metadata.ArtifactMetadata, org.apache.maven.artifact.repository.ArtifactRepository, java.io.File, java.lang.String) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException,public void getRemoteFile(org.apache.maven.artifact.repository.ArtifactRepository, java.io.File, java.lang.String, org.apache.maven.wagon.events.TransferListener, java.lang.String, boolean) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException,public org.apache.maven.wagon.Wagon getWagon(org.apache.maven.wagon.repository.Repository) throws org.apache.maven.wagon.UnsupportedProtocolException,public org.apache.maven.wagon.Wagon getWagon(java.lang.String) throws org.apache.maven.wagon.UnsupportedProtocolException,public void putArtifact(java.io.File, org.apache.maven.artifact.Artifact, org.apache.maven.artifact.repository.ArtifactRepository, org.apache.maven.wagon.events.TransferListener) throws org.apache.maven.wagon.TransferFailedException,public void putArtifactMetadata(java.io.File, org.apache.maven.artifact.metadata.ArtifactMetadata, org.apache.maven.artifact.repository.ArtifactRepository) throws org.apache.maven.wagon.TransferFailedException,public void putRemoteFile(org.apache.maven.artifact.repository.ArtifactRepository, java.io.File, java.lang.String, org.apache.maven.wagon.events.TransferListener) throws org.apache.maven.wagon.TransferFailedException<variables>private static final java.lang.String[] CHECKSUM_ALGORITHMS,private static final java.lang.String[] CHECKSUM_IDS,private org.codehaus.plexus.PlexusContainer container,private org.apache.maven.plugin.LegacySupport legacySupport,private org.codehaus.plexus.logging.Logger logger,private org.apache.maven.repository.legacy.UpdateCheckManager updateCheckManager