@Test public void testForRepository_NoAuth() { RemoteRepository repo = newRepo( null, null ); String digest = AuthenticationDigest.forRepository( newSession(), repo ); assertEquals( "", digest ); }
public static String forRepository( RepositorySystemSession session, RemoteRepository repository ) { String digest = ""; Authentication auth = repository.getAuthentication(); if ( auth != null ) { AuthenticationDigest authDigest = new AuthenticationDigest( session, repository, null ); auth.digest( authDigest ); digest = authDigest.digest(); } return digest; }
AuthenticationDigest { public static String forRepository( RepositorySystemSession session, RemoteRepository repository ) { String digest = ""; Authentication auth = repository.getAuthentication(); if ( auth != null ) { AuthenticationDigest authDigest = new AuthenticationDigest( session, repository, null ); auth.digest( authDigest ); digest = authDigest.digest(); } return digest; } }
AuthenticationDigest { public static String forRepository( RepositorySystemSession session, RemoteRepository repository ) { String digest = ""; Authentication auth = repository.getAuthentication(); if ( auth != null ) { AuthenticationDigest authDigest = new AuthenticationDigest( session, repository, null ); auth.digest( authDigest ); digest = authDigest.digest(); } return digest; } private  AuthenticationDigest( RepositorySystemSession session, RemoteRepository repository, Proxy proxy ); }
AuthenticationDigest { public static String forRepository( RepositorySystemSession session, RemoteRepository repository ) { String digest = ""; Authentication auth = repository.getAuthentication(); if ( auth != null ) { AuthenticationDigest authDigest = new AuthenticationDigest( session, repository, null ); auth.digest( authDigest ); digest = authDigest.digest(); } return digest; } private  AuthenticationDigest( RepositorySystemSession session, RemoteRepository repository, Proxy proxy ); static String forRepository( RepositorySystemSession session, RemoteRepository repository ); static String forProxy( RepositorySystemSession session, RemoteRepository repository ); RepositorySystemSession getSession(); RemoteRepository getRepository(); Proxy getProxy(); void update( String... strings ); void update( char... chars ); void update( byte... bytes ); }
AuthenticationDigest { public static String forRepository( RepositorySystemSession session, RemoteRepository repository ) { String digest = ""; Authentication auth = repository.getAuthentication(); if ( auth != null ) { AuthenticationDigest authDigest = new AuthenticationDigest( session, repository, null ); auth.digest( authDigest ); digest = authDigest.digest(); } return digest; } private  AuthenticationDigest( RepositorySystemSession session, RemoteRepository repository, Proxy proxy ); static String forRepository( RepositorySystemSession session, RemoteRepository repository ); static String forProxy( RepositorySystemSession session, RemoteRepository repository ); RepositorySystemSession getSession(); RemoteRepository getRepository(); Proxy getProxy(); void update( String... strings ); void update( char... chars ); void update( byte... bytes );  }