@Test public void testForProxy() { RepositorySystemSession session = newSession(); Proxy proxy = newProxy( newAuth() ); RemoteRepository repo = newRepo( newAuth(), proxy ); AuthenticationContext context = AuthenticationContext.forProxy( session, repo ); assertNotNull( context ); assertSame( session, context.getSession() ); assertSame( repo, context.getRepository() ); assertSame( proxy, context.getProxy() ); assertEquals( "value", context.get( "key" ) ); assertEquals( "value", context.get( "key" ) ); }
public static AuthenticationContext forProxy( RepositorySystemSession session, RemoteRepository repository ) { Proxy proxy = repository.getProxy(); return newInstance( session, repository, proxy, ( proxy != null ) ? proxy.getAuthentication() : null ); }
AuthenticationContext implements Closeable { public static AuthenticationContext forProxy( RepositorySystemSession session, RemoteRepository repository ) { Proxy proxy = repository.getProxy(); return newInstance( session, repository, proxy, ( proxy != null ) ? proxy.getAuthentication() : null ); } }
AuthenticationContext implements Closeable { public static AuthenticationContext forProxy( RepositorySystemSession session, RemoteRepository repository ) { Proxy proxy = repository.getProxy(); return newInstance( session, repository, proxy, ( proxy != null ) ? proxy.getAuthentication() : null ); } private  AuthenticationContext( RepositorySystemSession session, RemoteRepository repository, Proxy proxy,
                                   Authentication auth ); }
AuthenticationContext implements Closeable { public static AuthenticationContext forProxy( RepositorySystemSession session, RemoteRepository repository ) { Proxy proxy = repository.getProxy(); return newInstance( session, repository, proxy, ( proxy != null ) ? proxy.getAuthentication() : null ); } private  AuthenticationContext( RepositorySystemSession session, RemoteRepository repository, Proxy proxy,
                                   Authentication auth ); static AuthenticationContext forRepository( RepositorySystemSession session, RemoteRepository repository ); static AuthenticationContext forProxy( RepositorySystemSession session, RemoteRepository repository ); RepositorySystemSession getSession(); RemoteRepository getRepository(); Proxy getProxy(); String get( String key ); T get( String key, Class<T> type ); T get( String key, Map<String, String> data, Class<T> type ); void put( String key, Object value ); void close(); static void close( AuthenticationContext context ); }
AuthenticationContext implements Closeable { public static AuthenticationContext forProxy( RepositorySystemSession session, RemoteRepository repository ) { Proxy proxy = repository.getProxy(); return newInstance( session, repository, proxy, ( proxy != null ) ? proxy.getAuthentication() : null ); } private  AuthenticationContext( RepositorySystemSession session, RemoteRepository repository, Proxy proxy,
                                   Authentication auth ); static AuthenticationContext forRepository( RepositorySystemSession session, RemoteRepository repository ); static AuthenticationContext forProxy( RepositorySystemSession session, RemoteRepository repository ); RepositorySystemSession getSession(); RemoteRepository getRepository(); Proxy getProxy(); String get( String key ); T get( String key, Class<T> type ); T get( String key, Map<String, String> data, Class<T> type ); void put( String key, Object value ); void close(); static void close( AuthenticationContext context ); static final String USERNAME; static final String PASSWORD; static final String NTLM_DOMAIN; static final String NTLM_WORKSTATION; static final String PRIVATE_KEY_PATH; static final String PRIVATE_KEY_PASSPHRASE; static final String HOST_KEY_ACCEPTANCE; static final String HOST_KEY_REMOTE; static final String HOST_KEY_LOCAL; static final String SSL_CONTEXT; static final String SSL_HOSTNAME_VERIFIER; }