Package org.eclipse.net4j.connector

# Klasse ConnectorCredentialsInjector

java.lang.Object
org.eclipse.net4j.util.security.ResponseNegotiatorInjector
org.eclipse.net4j.connector.ConnectorCredentialsInjector

Alle implementierten Schnittstellen:
  `org.eclipse.net4j.util.container.IElementProcessor`

public class ConnectorCredentialsInjector extends org.eclipse.net4j.util.security.ResponseNegotiatorInjector
Injects a configurable response negotiator into selected client connectors.

An example:

     IManagedContainer container = IPluginContainer.INSTANCE;

     String connectorDescription = "localhost:2036";
     String userID = "name";
     String password = "secret";

     IPasswordCredentialsProvider credentialsProvider = new PasswordCredentialsProvider(userID, password);

     container.addPostProcessor(new ConnectorCredentialsInjector(connectorDescription, credentialsProvider));
     IConnector connector = (IConnector)container.getElement("org.eclipse.net4j.connectors", "tcp", connectorDescription);

     IChannel channel = connector.openChannel();
     // ...

Seit:
  2.0
Autor:
  Eike Stepper

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`ConnectorCredentialsInjector(String connectorDescription, org.eclipse.net4j.util.security.IPasswordCredentialsProvider credentialsProvider)`
`ConnectorCredentialsInjector(String connectorDescription, org.eclipse.net4j.util.security.IPasswordCredentialsProvider credentialsProvider, String algorithmName)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`protected boolean`
`filterConnectorDescription(String description)`
`protected boolean`
`filterElement(String productGroup, String factoryType, String description, org.eclipse.net4j.util.security.INegotiatorAware negotiatorAware)`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.security.ResponseNegotiatorInjector

`getNegotiator, process`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### ConnectorCredentialsInjector

public ConnectorCredentialsInjector(String connectorDescription, org.eclipse.net4j.util.security.IPasswordCredentialsProvider credentialsProvider, String algorithmName)

Parameter:
  `connectorDescription` - The description of the IConnector that the negotiator shall be injected into, or `null` to bypass the description check.

### ConnectorCredentialsInjector

public ConnectorCredentialsInjector(String connectorDescription, org.eclipse.net4j.util.security.IPasswordCredentialsProvider credentialsProvider)

Parameter:
  `connectorDescription` - The description of the IConnector that the negotiator shall be injected into, or `null` to bypass the description check.

## Methodendetails

### filterElement

protected boolean filterElement(String productGroup, String factoryType, String description, org.eclipse.net4j.util.security.INegotiatorAware negotiatorAware)

Angegeben von:
  `filterElement` in Klasse `org.eclipse.net4j.util.security.ResponseNegotiatorInjector`

### filterConnectorDescription

protected boolean filterConnectorDescription(String description)