org.eclipse.net4j.connector
Class ConnectorCredentialsInjector
java.lang.Object
org.eclipse.net4j.util.security.ResponseNegotiatorInjector
org.eclipse.net4j.connector.ConnectorCredentialsInjector
- All Implemented Interfaces:
- IElementProcessor
- public class ConnectorCredentialsInjector
- extends 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();
// ...
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorCredentialsInjector
public ConnectorCredentialsInjector(String connectorDescription,
IPasswordCredentialsProvider credentialsProvider,
String algorithmName)
- Parameters:
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,
IPasswordCredentialsProvider credentialsProvider)
- Parameters:
connectorDescription
- The description of the IConnector that the negotiator shall be injected into, or null
to
bypass the description check.
filterElement
protected boolean filterElement(String productGroup,
String factoryType,
String description,
INegotiatorAware negotiatorAware)
- Specified by:
filterElement
in class ResponseNegotiatorInjector
filterConnectorDescription
protected boolean filterConnectorDescription(String description)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.