|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.components.ServerComponentManager
com.maverick.sshd.components.standalone.StandaloneServerComponentManager
public class StandaloneServerComponentManager
Standalone component manager provides a ServerComponentManager
implementation that uses the internal cryptographic provider.
| Constructor Summary | |
|---|---|
StandaloneServerComponentManager()
|
|
| Method Summary | |
|---|---|
SshDsaPrivateKey |
createDsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y)
Create a DSA private key from DSA parameters. |
SshDsaPublicKey |
createDsaPublicKey()
Create an uninitialized instance of a DSA public key. |
SshDsaPublicKey |
createDsaPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
Create an instance of an DSA public key. |
SshRsaPrivateCrtKey |
createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger crtCoefficient)
Create a RSA co-efficient key from RSA parameters. |
SshRsaPrivateCrtKey |
createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger primeExponentP,
java.math.BigInteger primeExponentQ,
java.math.BigInteger crtCoefficient)
Create an RSA co-efficient key from RSA parameters. |
SshRsaPrivateKey |
createRsaPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger privateExponent)
Create an RSA private key from RSA parameters |
SshRsaPublicKey |
createRsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
int version)
Create an instance of an RSA public key from RSA parameters. |
SshRsaPublicKey |
createSsh2RsaPublicKey()
Create an uninitialized instance of an RSA public key |
SshKeyPair |
generateDsaKeyPair(int bits)
Generate a DSA key pair. |
SshKeyPair |
generateRsaKeyPair(int bits)
Generate an RSA key pair. |
SshSecureRandomGenerator |
getRND()
Get the secure number generator implementation. |
protected void |
initializeDigestFactory(ComponentFactory digests)
Initialize the digest factory. |
void |
initializeHmacFactory(ComponentFactory hmacs)
Initialize the SSH2 HMac factory. |
protected void |
initializeKeyExchangeFactory(ComponentFactory keyexchange)
Initialize the key exchange factory. |
void |
initializePublicKeyFactory(ComponentFactory publickeys)
Initialize the public key factory. |
void |
initializeSsh2CipherFactory(ComponentFactory ciphers)
Initialize the SSH2 cipher factory. |
void |
loadKeystore(java.io.File keystoreFile,
java.lang.String alias,
java.lang.String storePassphrase,
java.lang.String keyPassphrase,
SshContext context)
Load a host key from a keystore file. |
| Methods inherited from class com.maverick.sshd.components.ServerComponentManager |
|---|
getInstance, getPerContextAlgorithmPreferences, init, setInstance, setPerContextAlgorithmPreferences, supportedDigests, supportedHMacsCS, supportedHMacsSC, supportedKeyExchanges, supportedPublicKeys, supportedSsh2CiphersCS, supportedSsh2CiphersSC |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandaloneServerComponentManager()
| Method Detail |
|---|
public SshSecureRandomGenerator getRND()
ServerComponentManager
getRND in class ServerComponentManager
public SshDsaPublicKey createDsaPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
ServerComponentManager
createDsaPublicKey in class ServerComponentManagerpublic SshDsaPublicKey createDsaPublicKey()
ServerComponentManager
createDsaPublicKey in class ServerComponentManager
public SshRsaPublicKey createRsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
int version)
ServerComponentManager
createRsaPublicKey in class ServerComponentManager
public SshRsaPublicKey createSsh2RsaPublicKey()
throws SshException
ServerComponentManager
createSsh2RsaPublicKey in class ServerComponentManagerSshExceptionpublic void initializeSsh2CipherFactory(ComponentFactory ciphers)
ServerComponentManager
initializeSsh2CipherFactory in class ServerComponentManagerpublic void initializeHmacFactory(ComponentFactory hmacs)
ServerComponentManager
initializeHmacFactory in class ServerComponentManagerpublic void initializePublicKeyFactory(ComponentFactory publickeys)
ServerComponentManager
initializePublicKeyFactory in class ServerComponentManagerprotected void initializeKeyExchangeFactory(ComponentFactory keyexchange)
ServerComponentManager
initializeKeyExchangeFactory in class ServerComponentManager
public SshDsaPrivateKey createDsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y)
ServerComponentManager
createDsaPrivateKey in class ServerComponentManager
public SshRsaPrivateCrtKey createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger crtCoefficient)
ServerComponentManager
createRsaPrivateCrtKey in class ServerComponentManager
public SshRsaPrivateCrtKey createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger primeExponentP,
java.math.BigInteger primeExponentQ,
java.math.BigInteger crtCoefficient)
ServerComponentManager
createRsaPrivateCrtKey in class ServerComponentManager
public SshRsaPrivateKey createRsaPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger privateExponent)
ServerComponentManager
createRsaPrivateKey in class ServerComponentManagerpublic SshKeyPair generateDsaKeyPair(int bits)
ServerComponentManager
generateDsaKeyPair in class ServerComponentManagerpublic SshKeyPair generateRsaKeyPair(int bits)
ServerComponentManager
generateRsaKeyPair in class ServerComponentManagerprotected void initializeDigestFactory(ComponentFactory digests)
ServerComponentManager
initializeDigestFactory in class ServerComponentManager
public void loadKeystore(java.io.File keystoreFile,
java.lang.String alias,
java.lang.String storePassphrase,
java.lang.String keyPassphrase,
SshContext context)
throws java.io.IOException
ServerComponentManager
loadKeystore in class ServerComponentManagerjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||