org.apache.sshd.common.keyprovider
Class ResourceKeyPairProvider

java.lang.Object
  extended by org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
      extended by org.apache.sshd.common.keyprovider.ResourceKeyPairProvider
All Implemented Interfaces:
KeyPairProvider

public class ResourceKeyPairProvider
extends AbstractKeyPairProvider

(from org.apache.sshd.common.keyprovider.FileKeyPairProvider) This host key provider loads private keys from the specified resources.

Note that this class has a direct dependency on BouncyCastle and won't work unless it has been correctly registered as a security provider.

Author:
Apache MINA SSHD Project

Field Summary
 
Fields inherited from interface org.apache.sshd.common.KeyPairProvider
SSH_DSS, SSH_RSA
 
Constructor Summary
ResourceKeyPairProvider()
          No-arg constructor.
ResourceKeyPairProvider(String[] resources)
          Bulk constructor 1.
ResourceKeyPairProvider(String[] resources, org.bouncycastle.openssl.PasswordFinder passwordFinder)
          Bulk constructor 2.
ResourceKeyPairProvider(String[] resources, org.bouncycastle.openssl.PasswordFinder passwordFinder, ClassLoader cloader)
          Bulk constructor 3.
 
Method Summary
 org.bouncycastle.openssl.PasswordFinder getPasswordFinder()
          
 String[] getResources()
          
 KeyPair[] loadKeys()
          
 void setPasswordFinder(org.bouncycastle.openssl.PasswordFinder passwordFinder)
          
 void setResources(String[] resources)
          
 
Methods inherited from class org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
getKeyType, getKeyTypes, loadKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceKeyPairProvider

public ResourceKeyPairProvider()
No-arg constructor.


ResourceKeyPairProvider

public ResourceKeyPairProvider(String[] resources)
Bulk constructor 1.


ResourceKeyPairProvider

public ResourceKeyPairProvider(String[] resources,
                               org.bouncycastle.openssl.PasswordFinder passwordFinder)
Bulk constructor 2.


ResourceKeyPairProvider

public ResourceKeyPairProvider(String[] resources,
                               org.bouncycastle.openssl.PasswordFinder passwordFinder,
                               ClassLoader cloader)
Bulk constructor 3.

Method Detail

getResources

public String[] getResources()


setResources

public void setResources(String[] resources)


getPasswordFinder

public org.bouncycastle.openssl.PasswordFinder getPasswordFinder()


setPasswordFinder

public void setPasswordFinder(org.bouncycastle.openssl.PasswordFinder passwordFinder)


loadKeys

public KeyPair[] loadKeys()

Specified by:
loadKeys in class AbstractKeyPairProvider


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.