|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.core.model.RSEPersistableObject
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.AbstractConnectorService
org.eclipse.rse.core.subsystems.BasicConnectorService
public abstract class BasicConnectorService
A basic connector service is one that does not require any type of
authentication to connect to its target system.
Since this is the case, many of the methods of
IConnectorService
are implemented only in skeletal form.
Field Summary |
---|
Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
---|
NO_CHILDREN |
Constructor Summary | |
---|---|
BasicConnectorService(String name,
String description,
IHost host,
int port)
Constructs a basic connector service. |
Method Summary | |
---|---|
void |
acquireCredentials(boolean refresh)
Acquires credentials. |
void |
clearCredentials()
Clears credentials. |
void |
clearPassword(boolean persist,
boolean propagate)
Clears a password. |
String |
getUserId()
Gets the user id. |
boolean |
hasPassword(boolean onDisk)
Indicates the presence of a password. |
boolean |
inheritsCredentials()
Indicates if this connector service can inherit its credentials from others. |
boolean |
isSuppressed()
Indicates if this connector service is currently being suppressed. |
void |
removePassword()
Removes the persistent form of a password. |
void |
removeUserId()
Removes the persistent form of the default user id. |
boolean |
requiresPassword()
Indicates if this connector service requires passwords. |
boolean |
requiresUserId()
Indicates if this connector service requires a user id. |
void |
savePassword()
Saves the remembered password persistently. |
void |
saveUserId()
Saves the remembered user id persistently. |
void |
setPassword(String matchingUserId,
String password,
boolean persist,
boolean propagate)
Sets the password for a particular user id and optionally persists it. |
void |
setSuppressed(boolean suppress)
Sets the suppressed state of this connector service. |
void |
setUserId(String userId)
Sets the user id for this connector service. |
boolean |
sharesCredentials()
Indicates if credentials are shared with other connector services. |
boolean |
supportsPassword()
Indicates if this connector service understands passwords. |
boolean |
supportsUserId()
Indicates if this connector service understands user ids. |
Methods inherited from class org.eclipse.rse.core.model.PropertySetContainer |
---|
addPropertySet, addPropertySets, clonePropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
Methods inherited from class org.eclipse.rse.core.model.RSEPersistableObject |
---|
compareStrings, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.rse.core.subsystems.IConnectorService |
---|
isConnected |
Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
---|
addPropertySet, addPropertySets, clonePropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
Methods inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
---|
isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
Constructor Detail |
---|
public BasicConnectorService(String name, String description, IHost host, int port)
name
- The name of the connector servicedescription
- The description of the connector servicehost
- the host associated with this connector serviceport
- the port used by this connector service, if IP basedMethod Detail |
---|
public boolean supportsPassword()
IConnectorService.supportsPassword()
public boolean requiresPassword()
IConnectorService.requiresPassword()
public boolean supportsUserId()
IConnectorService.supportsUserId()
public boolean requiresUserId()
IConnectorService.requiresUserId()
public void acquireCredentials(boolean refresh) throws OperationCanceledException
refresh
- if true will force the connector service to discard any
remembered value and reacquire the credentials.
OperationCanceledException
- if acquisition of the credentials is
cancelled or is being suppressed.IConnectorService.acquireCredentials(boolean)
public void clearCredentials()
IConnectorService.clearCredentials()
public void clearPassword(boolean persist, boolean propagate)
persist
- if true, clears the persistent form of the passwordpropagate
- true if this password should be cleared in related connector services.IConnectorService.clearPassword(boolean, boolean)
public String getUserId()
IConnectorService.getUserId()
public boolean hasPassword(boolean onDisk)
onDisk
- true if checking for a persistent form of a password
IConnectorService.hasPassword(boolean)
public boolean inheritsCredentials()
IConnectorService.inheritsCredentials()
public boolean isSuppressed()
IConnectorService.isSuppressed()
public void removePassword()
IConnectorService.removePassword()
public void removeUserId()
IConnectorService.removeUserId()
public void savePassword()
IConnectorService.savePassword()
public void saveUserId()
IConnectorService.saveUserId()
public void setPassword(String matchingUserId, String password, boolean persist, boolean propagate)
matchingUserId
- the user id to set the password forpassword
- the password to set.persist
- true if this is to be persisted.propagate
- true if this password should be propagated to other
connector services.IConnectorService.setPassword(java.lang.String,
java.lang.String, boolean, boolean)
public boolean sharesCredentials()
IConnectorService.sharesCredentials()
public void setSuppressed(boolean suppress)
suppress
- true if this connector service should be suppressed.IConnectorService.setSuppressed(boolean)
public void setUserId(String userId)
userId
- the user id to set for this service.IConnectorService.setUserId(java.lang.String)
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |