1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[168977][api][refactor] - stage 3.5

- changed BasicConnectorService to extend SuperAbstractConnectorService instead of AuthenticatingConnectorService since its role is to NOT provide authentication.
- removed BasicCredentialsProvider since it is no longer needed

No impact over M5.
This commit is contained in:
David Dykstal 2007-03-28 15:10:53 +00:00
parent 0b82ae4e9c
commit 2c58566c69
2 changed files with 54 additions and 55 deletions

View file

@ -47,11 +47,10 @@ import org.eclipse.rse.core.model.IHost;
*
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager
*/
public abstract class BasicConnectorService extends AuthenticatingConnectorService {
public abstract class BasicConnectorService extends SuperAbstractConnectorService {
public BasicConnectorService(String name, String description, IHost host, int port) {
super(name, description, host, port);
setCredentialsProvider(new BasicCredentialsProvider(this));
}
public boolean supportsPassword() {
@ -70,4 +69,57 @@ public abstract class BasicConnectorService extends AuthenticatingConnectorServi
return false;
}
public void acquireCredentials(boolean refresh) throws InterruptedException {
}
public void clearCredentials() {
}
public void clearPassword(boolean persist, boolean propagate) {
}
public String getUserId() {
return null;
}
public boolean hasPassword(boolean onDisk) {
return false;
}
public boolean inheritsCredentials() {
return false;
}
public boolean isSuppressed() {
return false;
}
protected void postDisconnect() {
}
public void removePassword() {
}
public void removeUserId() {
}
public void savePassword() {
}
public void saveUserId() {
}
public void setPassword(String matchingUserId, String password, boolean persist, boolean propagate) {
}
public boolean sharesCredentials() {
return false;
}
public void setSuppressed(boolean suppress) {
}
public void setUserId(String userId) {
}
}

View file

@ -1,53 +0,0 @@
/********************************************************************************
* Copyright (c) 2007 IBM Corporation. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David Dykstal (IBM) - 168977: refactoring IConnectorService
********************************************************************************/
package org.eclipse.rse.core.subsystems;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
/**
* The {@link BasicCredentialsProvider} provides a simple implementation of the {@link ICredentialsProvider}
* interface. It is suitable for use with a connector service that needs to provide
* no special authentication to connect to its target system.
* <p>
* This class is not meant to be subclassed.
*/
public class BasicCredentialsProvider extends AbstractCredentialsProvider {
public BasicCredentialsProvider(IConnectorService connectorService) {
super(connectorService);
}
public void acquireCredentials(boolean reacquire) {
}
public void clearCredentials() {
}
public void clearPassword() {
}
public ICredentials getCredentials() {
return null;
}
public String getUserId() {
return null;
}
public void repairCredentials(SystemMessage message) throws InterruptedException {
}
public void setPassword(String password) {
}
public void setUserId(String userId) {
}
}