|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.ssh.components.ComponentManager
com.maverick.ssh.components.standalone.StandaloneComponentManager
public class StandaloneComponentManager
Standalone component manager provides a ComponentManager
implementation that uses the internal cryptographic provider.
| 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 |
|---|
public StandaloneComponentManager()
| Method Detail |
|---|
public SshSecureRandomGenerator getRND()
ComponentManager
getRND in class ComponentManager
public SshDsaPublicKey createDsaPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
ComponentManager
createDsaPublicKey in class ComponentManagerpublic SshDsaPublicKey createDsaPublicKey()
ComponentManager
createDsaPublicKey in class ComponentManager
public SshRsaPublicKey createRsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
int version)
ComponentManager
createRsaPublicKey in class ComponentManager
public SshRsaPublicKey createSsh2RsaPublicKey()
throws SshException
ComponentManager
createSsh2RsaPublicKey in class ComponentManagerSshExceptionpublic void initializeSsh2CipherFactory(ComponentFactory ciphers)
ComponentManager
initializeSsh2CipherFactory in class ComponentManagerpublic void initializeHmacFactory(ComponentFactory hmacs)
ComponentManager
initializeHmacFactory in class ComponentManagerpublic void initializePublicKeyFactory(ComponentFactory publickeys)
ComponentManager
initializePublicKeyFactory in class ComponentManagerprotected void initializeKeyExchangeFactory(ComponentFactory keyexchange)
ComponentManager
initializeKeyExchangeFactory in class ComponentManagerprotected void initializeSsh1CipherFactory(ComponentFactory ciphers)
ComponentManager
initializeSsh1CipherFactory in class ComponentManager
public SshDsaPrivateKey createDsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y)
ComponentManager
createDsaPrivateKey in class ComponentManager
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)
ComponentManager
createRsaPrivateCrtKey in class ComponentManager
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)
ComponentManager
createRsaPrivateCrtKey in class ComponentManager
public SshRsaPrivateKey createRsaPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger privateExponent)
ComponentManager
createRsaPrivateKey in class ComponentManagerpublic SshKeyPair generateDsaKeyPair(int bits)
ComponentManager
generateDsaKeyPair in class ComponentManager
public SshKeyPair generateRsaKeyPair(int bits,
int version)
ComponentManager
generateRsaKeyPair in class ComponentManagerprotected void initializeDigestFactory(ComponentFactory digests)
ComponentManager
initializeDigestFactory in class ComponentManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||