Search in sources :

Example 1 with AuthenticationCredentials

use of org.eclipse.mylyn.commons.net.AuthenticationCredentials in project linuxtools by eclipse.

the class OSIORestTestFixture method repository.

public TaskRepository repository() {
    if (repository != null) {
        return repository;
    }
    repository = new TaskRepository(getConnectorKind(), getRepositoryUrl());
    UserCredentials credentials = CommonTestUtil.getCredentials(PrivilegeLevel.USER);
    repository.setCredentials(org.eclipse.mylyn.commons.net.AuthenticationType.REPOSITORY, new AuthenticationCredentials(credentials.getUserName(), credentials.getPassword()), true);
    return repository;
}
Also used : AuthenticationCredentials(org.eclipse.mylyn.commons.net.AuthenticationCredentials) TaskRepository(org.eclipse.mylyn.tasks.core.TaskRepository) UserCredentials(org.eclipse.mylyn.commons.repositories.core.auth.UserCredentials)

Aggregations

AuthenticationCredentials (org.eclipse.mylyn.commons.net.AuthenticationCredentials)1 UserCredentials (org.eclipse.mylyn.commons.repositories.core.auth.UserCredentials)1 TaskRepository (org.eclipse.mylyn.tasks.core.TaskRepository)1