|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.components.ServerComponentManager
public abstract class ServerComponentManager
An abstract class that manages the components used by the SSH API. All
algorithm implementations are obtained through a single provider. Two
implementations are provided, the
com.maverick.sshd.components.standalone.StandaloneServerComponentManager
which uses internal algorithm implementations and the
JCEServerComponentManager that uses
the Java runtime JCE provider(s) algorithm implementations.
If both component managers are available on the classpath then the JCE version will be selected. Jar files have been provided that contain both:
| Constructor Summary | |
|---|---|
protected |
ServerComponentManager()
|
| Method Summary | |
|---|---|
abstract com.maverick.ssh.components.SshDsaPrivateKey |
createDsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y)
Create a DSA private key from DSA parameters. |
abstract com.maverick.ssh.components.SshDsaPublicKey |
createDsaPublicKey()
Create an uninitialized instance of a DSA public key. |
abstract com.maverick.ssh.components.SshDsaPublicKey |
createDsaPublicKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y)
Create an instance of an DSA public key. |
abstract com.maverick.ssh.components.SshRsaPrivateCrtKey |
createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger crtCoefficient)
Create a RSA co-efficient key from RSA parameters. |
abstract com.maverick.ssh.components.SshRsaPrivateCrtKey |
createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient)
Create an RSA co-efficient key from RSA parameters. |
abstract com.maverick.ssh.components.SshRsaPrivateKey |
createRsaPrivateKey(BigInteger modulus,
BigInteger privateExponent)
Create an RSA private key from RSA parameters |
abstract com.maverick.ssh.components.SshRsaPublicKey |
createRsaPublicKey(BigInteger modulus,
BigInteger publicExponent,
int version)
Create an instance of an RSA public key from RSA parameters. |
abstract com.maverick.ssh.components.SshRsaPublicKey |
createSsh2RsaPublicKey()
Create an uninitialized instance of an RSA public key |
abstract com.maverick.ssh.components.SshKeyPair |
generateDsaKeyPair(int bits)
Generate a DSA key pair. |
abstract com.maverick.ssh.components.SshKeyPair |
generateRsaKeyPair(int bits)
Generate an RSA key pair. |
abstract com.maverick.ssh.components.SshSecureRandomGenerator |
getRND()
Get the secure number generator implementation. |
protected abstract void |
initializeDigestFactory(com.maverick.ssh.components.ComponentFactory digests)
Initialize the digest factory. |
protected abstract void |
initializeHmacFactory(com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshHmac> hmacs)
Initialize the SSH2 HMac factory. |
protected abstract void |
initializeKeyExchangeFactory(com.maverick.ssh.components.ComponentFactory<SshKeyExchangeServer> keyexchange)
Initialize the key exchange factory. |
protected abstract void |
initializePublicKeyFactory(com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshPublicKey> publickeys)
Initialize the public key factory. |
protected abstract void |
initializeSsh2CipherFactory(com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCipher> ciphers)
Initialize the SSH2 cipher factory. |
boolean |
isEnableNoneCipher()
|
abstract void |
loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase,
SshContext context)
Load a host key from a keystore file. |
abstract void |
loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType,
SshContext context)
|
abstract void |
loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase,
SshContext context)
Load a host key from a keystore InputStream. |
abstract void |
loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType,
SshContext context)
|
void |
setEnableNoneCipher(boolean enableNoneCipher)
|
com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCompression> |
supportedCompressionsCS()
|
com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCompression> |
supportedCompressionsSC()
|
com.maverick.ssh.components.ComponentFactory |
supportedDigests()
Return the supported digest factory. |
com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshHmac> |
supportedHMacsCS()
Return the supported SSH2 HMac factory. |
com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshHmac> |
supportedHMacsSC()
|
com.maverick.ssh.components.ComponentFactory<SshKeyExchangeServer> |
supportedKeyExchanges()
Return the supported SSH2 key exchanges. |
com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshPublicKey> |
supportedPublicKeys()
Return the supported public key factory. |
com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCipher> |
supportedSsh2CiphersCS()
Return the supported SSH2 cipher factory. |
com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCipher> |
supportedSsh2CiphersSC()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ServerComponentManager()
throws com.maverick.ssh.common.SshException
com.maverick.ssh.common.SshException| Method Detail |
|---|
public boolean isEnableNoneCipher()
public void setEnableNoneCipher(boolean enableNoneCipher)
protected abstract void initializeSsh2CipherFactory(com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCipher> ciphers)
ciphers - protected abstract void initializeHmacFactory(com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshHmac> hmacs)
hmacs - protected abstract void initializePublicKeyFactory(com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshPublicKey> publickeys)
publickeys - protected abstract void initializeKeyExchangeFactory(com.maverick.ssh.components.ComponentFactory<SshKeyExchangeServer> keyexchange)
keyexchange - protected abstract void initializeDigestFactory(com.maverick.ssh.components.ComponentFactory digests)
digests - public com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCipher> supportedSsh2CiphersCS()
public com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCipher> supportedSsh2CiphersSC()
public com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshHmac> supportedHMacsCS()
public com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshHmac> supportedHMacsSC()
public com.maverick.ssh.components.ComponentFactory<SshKeyExchangeServer> supportedKeyExchanges()
public com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshPublicKey> supportedPublicKeys()
public com.maverick.ssh.components.ComponentFactory supportedDigests()
public abstract com.maverick.ssh.components.SshKeyPair generateRsaKeyPair(int bits)
throws com.maverick.ssh.common.SshException
bits - version -
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshRsaPublicKey createRsaPublicKey(BigInteger modulus,
BigInteger publicExponent,
int version)
throws com.maverick.ssh.common.SshException
modulus - publicExponent - version -
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshRsaPublicKey createSsh2RsaPublicKey()
throws com.maverick.ssh.common.SshException
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshRsaPrivateKey createRsaPrivateKey(BigInteger modulus,
BigInteger privateExponent)
throws com.maverick.ssh.common.SshException
modulus - privateExponent -
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshRsaPrivateCrtKey createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger crtCoefficient)
throws com.maverick.ssh.common.SshException
modulus - publicExponent - privateExponent - primeP - primeQ - crtCoefficient -
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshRsaPrivateCrtKey createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient)
throws com.maverick.ssh.common.SshException
modulus - publicExponent - privateExponent - primeP - primeQ - primeExponentP - primeExponentQ - crtCoefficient -
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshKeyPair generateDsaKeyPair(int bits)
throws com.maverick.ssh.common.SshException
bits -
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshDsaPublicKey createDsaPublicKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y)
throws com.maverick.ssh.common.SshException
p - q - g - y -
com.maverick.ssh.common.SshExceptionpublic abstract com.maverick.ssh.components.SshDsaPublicKey createDsaPublicKey()
public abstract com.maverick.ssh.components.SshDsaPrivateKey createDsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y)
throws com.maverick.ssh.common.SshException
p - q - g - x - y -
com.maverick.ssh.common.SshException
public abstract com.maverick.ssh.components.SshSecureRandomGenerator getRND()
throws com.maverick.ssh.common.SshException
com.maverick.ssh.common.SshException
public abstract void loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase,
SshContext context)
throws IOException
keystoreFile - alias - storePassphrase - keyPassphrase -
IOException
public abstract void loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase,
SshContext context)
throws IOException
in - alias - storePassphrase - keyPassphrase -
IOException
public abstract void loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType,
SshContext context)
throws IOException
IOException
public abstract void loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType,
SshContext context)
throws IOException
IOExceptionpublic com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCompression> supportedCompressionsCS()
public com.maverick.ssh.components.ComponentFactory<com.maverick.ssh.components.SshCompression> supportedCompressionsSC()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||