Search in sources :

Example 1 with FossologySettings

use of org.eclipse.sw360.fossology.config.FossologySettings in project sw360portal by sw360.

the class RealSshConnectionUtils method getTrustingJSchSessionFactory.

static JSchSessionProvider getTrustingJSchSessionFactory() {
    FossologyFingerPrintRepository keyConnector = mock(FossologyFingerPrintRepository.class);
    FossologyHostKeyRepository hostKeyRepository = spy(new FossologyHostKeyRepository(keyConnector));
    doReturn(HostKeyRepository.OK).when(hostKeyRepository).check(anyString(), any(byte[].class));
    return new JSchSessionProvider(new FossologySettings(), hostKeyRepository);
}
Also used : FossologyFingerPrintRepository(org.eclipse.sw360.fossology.db.FossologyFingerPrintRepository) FossologyHostKeyRepository(org.eclipse.sw360.fossology.ssh.keyrepo.FossologyHostKeyRepository) FossologySettings(org.eclipse.sw360.fossology.config.FossologySettings)

Aggregations

FossologySettings (org.eclipse.sw360.fossology.config.FossologySettings)1 FossologyFingerPrintRepository (org.eclipse.sw360.fossology.db.FossologyFingerPrintRepository)1 FossologyHostKeyRepository (org.eclipse.sw360.fossology.ssh.keyrepo.FossologyHostKeyRepository)1