# identityrepository

###### Identifier:

org.eclipse.jsch.core.identityrepository

###### Since:

1.2

###### Description:

This extension point allows a plug-in to register an identity repository factory. This factory is expected to create an instance of `com.jcraft.jsch.IdentityRepository`, which abstracts communications with ssh-agent and Pageant. This extension point must implement the abstract class `org.eclipse.jsch.core.AbstractIdentityRepositoryFactory`.

###### Configuration Markup:

<!ELEMENT extension (identityrepository)>

<!ATTLIST extension

point CDATA #REQUIRED>

- point - a fully qualified identifier of the target extension point

<!ELEMENT identityrepository (run)>

<!ELEMENT run EMPTY>

<!ATTLIST run

class CDATA #REQUIRED>

- class - a fully qualified name of a class that implements `org.eclipse.jsch.core.AbstractIdentityRepositoryFactory`

###### Examples:

The following is an example of an identity repository factory for ssh-agent:

    <extension point = "org.eclipse.jsch.core.identityrepository">
         <identityrepository>
           <run
             class="com.jcraft.jsch.agentproxy.eclipse.sshagent.IdentityRepositoryFactory">
           </run>
         </identityrepository>
    </extension>

###### API Information:

The contributed class must implement `org.eclipse.jsch.core.AbstractIdentityRepositoryFactory`.

###### Supplied Implementation:

The Eclipse jsch-agent-proxy plugin defines identity repository factories.

Copyright (c) 2014 IBM Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0