com.maverick.ssh.components.standalone
Class StandaloneComponentManager

java.lang.Object
  extended bycom.maverick.ssh.components.ComponentManager
      extended bycom.maverick.ssh.components.standalone.StandaloneComponentManager

public class StandaloneComponentManager
extends ComponentManager

Standalone component manager provides a ComponentManager implementation that uses the internal cryptographic provider.

Author:
Lee David Painter

Constructor Summary
StandaloneComponentManager()
           
 
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 an instance of a DSA private key.
 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 a 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 an instance of an RSA co-effecient private 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 primeExponentP, java.math.BigInteger primeExponentQ, java.math.BigInteger crtCoefficient)
          Create an instance of an RSA co-efficent private key.
 SshRsaPrivateKey createRsaPrivateKey(java.math.BigInteger modulus, java.math.BigInteger privateExponent)
          Create an instance of an RSA private key.
 SshRsaPublicKey createRsaPublicKey(java.math.BigInteger modulus, java.math.BigInteger publicExponent, int version)
          Create an instance of an RSA public key.
 SshRsaPublicKey createSsh2RsaPublicKey()
          Create an instance of an SSH2 RSA public key.
 SshKeyPair generateDsaKeyPair(int bits)
          Generate a new DSA public/private key pair.
 SshKeyPair generateRsaKeyPair(int bits, int version)
          Generate an RSA public/private pair.
 SshSecureRandomGenerator getRND()
          Get the secure random number generator.
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 SSH2 key exchange factory.
 void initializePublicKeyFactory(ComponentFactory publickeys)
          Initialize the public key factory.
protected  void initializeSsh1CipherFactory(ComponentFactory ciphers)
          Initialize the SSH1 cipher factory.
 void initializeSsh2CipherFactory(ComponentFactory ciphers)
          Initialize the SSH2 cipher factory.
 
Methods inherited from class com.maverick.ssh.components.ComponentManager
getInstance, getPerContextAlgorithmPreferences, init, isEnableNoneCipher, setEnableNoneCipher, setInstance, setPerContextAlgorithmPreferences, supportedDigests, supportedHMacsCS, supportedHMacsSC, supportedKeyExchanges, supportedPublicKeys, supportedSsh1CiphersCS, supportedSsh1CiphersSC, supportedSsh2CiphersCS, supportedSsh2CiphersSC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandaloneComponentManager

public StandaloneComponentManager()
Method Detail

getRND

public SshSecureRandomGenerator getRND()
Description copied from class: ComponentManager
Get the secure random number generator.

Specified by:
getRND in class ComponentManager
Returns:
SshSecureRandomGenerator

createDsaPublicKey

public SshDsaPublicKey createDsaPublicKey(java.math.BigInteger p,
                                          java.math.BigInteger q,
                                          java.math.BigInteger g,
                                          java.math.BigInteger y)
Description copied from class: ComponentManager
Create an instance of a DSA public key.

Specified by:
createDsaPublicKey in class ComponentManager
Parameters:
p -
q -
g -
y -
Returns:
SshDsaPublicKey

createDsaPublicKey

public SshDsaPublicKey createDsaPublicKey()
Description copied from class: ComponentManager
Create an uninitialized instance of a DSA public key

Specified by:
createDsaPublicKey in class ComponentManager
Returns:
SshDsaPublicKey

createRsaPublicKey

public SshRsaPublicKey createRsaPublicKey(java.math.BigInteger modulus,
                                          java.math.BigInteger publicExponent,
                                          int version)
Description copied from class: ComponentManager
Create an instance of an RSA public key.

Specified by:
createRsaPublicKey in class ComponentManager
Parameters:
modulus -
publicExponent -
version -
Returns:
SshRsaPublicKey

createSsh2RsaPublicKey

public SshRsaPublicKey createSsh2RsaPublicKey()
                                       throws SshException
Description copied from class: ComponentManager
Create an instance of an SSH2 RSA public key.

Specified by:
createSsh2RsaPublicKey in class ComponentManager
Returns:
SshRsaPublicKey
Throws:
SshException

initializeSsh2CipherFactory

public void initializeSsh2CipherFactory(ComponentFactory ciphers)
Description copied from class: ComponentManager
Initialize the SSH2 cipher factory. These ciphers are exclusively used by the SSH2 implementation.

Specified by:
initializeSsh2CipherFactory in class ComponentManager
Parameters:
ciphers -

initializeHmacFactory

public void initializeHmacFactory(ComponentFactory hmacs)
Description copied from class: ComponentManager
Initialize the SSH2 HMAC factory.

Specified by:
initializeHmacFactory in class ComponentManager
Parameters:
hmacs -

initializePublicKeyFactory

public void initializePublicKeyFactory(ComponentFactory publickeys)
Description copied from class: ComponentManager
Initialize the public key factory.

Specified by:
initializePublicKeyFactory in class ComponentManager
Parameters:
publickeys -

initializeKeyExchangeFactory

protected void initializeKeyExchangeFactory(ComponentFactory keyexchange)
Description copied from class: ComponentManager
Initialize the SSH2 key exchange factory.

Specified by:
initializeKeyExchangeFactory in class ComponentManager
Parameters:
keyexchange -

initializeSsh1CipherFactory

protected void initializeSsh1CipherFactory(ComponentFactory ciphers)
Description copied from class: ComponentManager
Initialize the SSH1 cipher factory. These ciphers are exclusively used by the SSH1 implementation.

Specified by:
initializeSsh1CipherFactory in class ComponentManager
Parameters:
ciphers -

createDsaPrivateKey

public SshDsaPrivateKey createDsaPrivateKey(java.math.BigInteger p,
                                            java.math.BigInteger q,
                                            java.math.BigInteger g,
                                            java.math.BigInteger x,
                                            java.math.BigInteger y)
Description copied from class: ComponentManager
Create an instance of a DSA private key.

Specified by:
createDsaPrivateKey in class ComponentManager
Parameters:
p -
q -
g -
x -
y -
Returns:
SshDsaPrivateKey

createRsaPrivateCrtKey

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)
Description copied from class: ComponentManager
Create an instance of an RSA co-effecient private key.

Specified by:
createRsaPrivateCrtKey in class ComponentManager
Parameters:
modulus -
publicExponent -
privateExponent -
primeP -
primeQ -
crtCoefficient -
Returns:
SshRsaPrivateCrtKey

createRsaPrivateCrtKey

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)
Description copied from class: ComponentManager
Create an instance of an RSA co-efficent private key.

Specified by:
createRsaPrivateCrtKey in class ComponentManager
Parameters:
modulus -
publicExponent -
privateExponent -
primeP -
primeQ -
primeExponentP -
primeExponentQ -
crtCoefficient -
Returns:
SshRsaPrivateCrtKey

createRsaPrivateKey

public SshRsaPrivateKey createRsaPrivateKey(java.math.BigInteger modulus,
                                            java.math.BigInteger privateExponent)
Description copied from class: ComponentManager
Create an instance of an RSA private key.

Specified by:
createRsaPrivateKey in class ComponentManager
Parameters:
modulus -
privateExponent -
Returns:
SshRsaPrivateKey

generateDsaKeyPair

public SshKeyPair generateDsaKeyPair(int bits)
Description copied from class: ComponentManager
Generate a new DSA public/private key pair.

Specified by:
generateDsaKeyPair in class ComponentManager
Parameters:
bits -
Returns:
SshKeyPair

generateRsaKeyPair

public SshKeyPair generateRsaKeyPair(int bits,
                                     int version)
Description copied from class: ComponentManager
Generate an RSA public/private pair.

Specified by:
generateRsaKeyPair in class ComponentManager
Parameters:
bits -
version -
Returns:
SshKeyPair

initializeDigestFactory

protected void initializeDigestFactory(ComponentFactory digests)
Description copied from class: ComponentManager
Initialize the digest factory.

Specified by:
initializeDigestFactory in class ComponentManager
Parameters:
digests -


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.