com.maverick.ssh.components.standalone
Class StandaloneComponentManager
java.lang.Object
com.maverick.ssh.components.ComponentManager
com.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
|
Method Summary |
SshDsaPrivateKey |
createDsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y)
|
SshDsaPublicKey |
createDsaPublicKey()
|
SshDsaPublicKey |
createDsaPublicKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y)
|
SshRsaPrivateCrtKey |
createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger crtCoefficient)
|
SshRsaPrivateCrtKey |
createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient)
|
SshRsaPrivateKey |
createRsaPrivateKey(BigInteger modulus,
BigInteger privateExponent)
|
SshRsaPublicKey |
createRsaPublicKey(BigInteger modulus,
BigInteger publicExponent,
int version)
|
SshRsaPublicKey |
createSsh2RsaPublicKey()
|
SshKeyPair |
generateDsaKeyPair(int bits)
|
SshKeyPair |
generateRsaKeyPair(int bits,
int version)
|
SshSecureRandomGenerator |
getRND()
|
protected void |
initializeDigestFactory(ComponentFactory digests)
|
void |
initializeHmacFactory(ComponentFactory hmacs)
|
protected void |
initializeKeyExchangeFactory(ComponentFactory keyexchange)
|
void |
initializePublicKeyFactory(ComponentFactory publickeys)
|
protected void |
initializeSsh1CipherFactory(ComponentFactory ciphers)
|
void |
initializeSsh2CipherFactory(ComponentFactory ciphers)
|
| 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 |
StandaloneComponentManager
public StandaloneComponentManager()
getRND
public SshSecureRandomGenerator getRND()
- Specified by:
getRND in class ComponentManager
createDsaPublicKey
public SshDsaPublicKey createDsaPublicKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y)
- Specified by:
createDsaPublicKey in class ComponentManager
createDsaPublicKey
public SshDsaPublicKey createDsaPublicKey()
- Specified by:
createDsaPublicKey in class ComponentManager
createRsaPublicKey
public SshRsaPublicKey createRsaPublicKey(BigInteger modulus,
BigInteger publicExponent,
int version)
- Specified by:
createRsaPublicKey in class ComponentManager
createSsh2RsaPublicKey
public SshRsaPublicKey createSsh2RsaPublicKey()
throws SshException
- Specified by:
createSsh2RsaPublicKey in class ComponentManager
- Throws:
SshException
initializeSsh2CipherFactory
public void initializeSsh2CipherFactory(ComponentFactory ciphers)
- Specified by:
initializeSsh2CipherFactory in class ComponentManager
initializeHmacFactory
public void initializeHmacFactory(ComponentFactory hmacs)
- Specified by:
initializeHmacFactory in class ComponentManager
initializePublicKeyFactory
public void initializePublicKeyFactory(ComponentFactory publickeys)
- Specified by:
initializePublicKeyFactory in class ComponentManager
initializeKeyExchangeFactory
protected void initializeKeyExchangeFactory(ComponentFactory keyexchange)
- Specified by:
initializeKeyExchangeFactory in class ComponentManager
initializeSsh1CipherFactory
protected void initializeSsh1CipherFactory(ComponentFactory ciphers)
- Specified by:
initializeSsh1CipherFactory in class ComponentManager
createDsaPrivateKey
public SshDsaPrivateKey createDsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y)
- Specified by:
createDsaPrivateKey in class ComponentManager
createRsaPrivateCrtKey
public SshRsaPrivateCrtKey createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger crtCoefficient)
- Specified by:
createRsaPrivateCrtKey in class ComponentManager
createRsaPrivateCrtKey
public SshRsaPrivateCrtKey createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient)
- Specified by:
createRsaPrivateCrtKey in class ComponentManager
createRsaPrivateKey
public SshRsaPrivateKey createRsaPrivateKey(BigInteger modulus,
BigInteger privateExponent)
- Specified by:
createRsaPrivateKey in class ComponentManager
generateDsaKeyPair
public SshKeyPair generateDsaKeyPair(int bits)
- Specified by:
generateDsaKeyPair in class ComponentManager
generateRsaKeyPair
public SshKeyPair generateRsaKeyPair(int bits,
int version)
- Specified by:
generateRsaKeyPair in class ComponentManager
initializeDigestFactory
protected void initializeDigestFactory(ComponentFactory digests)
- Specified by:
initializeDigestFactory in class ComponentManager
Copyright © 2012. All Rights Reserved.