com.maverick.ssh.components.standalone
Class Ssh2RsaPrivateCrtKey

java.lang.Object
  extended by com.maverick.crypto.publickey.RsaKey
      extended by com.maverick.crypto.publickey.RsaPrivateKey
          extended by com.maverick.crypto.publickey.RsaPrivateCrtKey
              extended by com.maverick.ssh.components.standalone.Ssh2RsaPrivateCrtKey
All Implemented Interfaces:
SshPrivateKey, SshRsaPrivateCrtKey, SshRsaPrivateKey

public class Ssh2RsaPrivateCrtKey
extends com.maverick.crypto.publickey.RsaPrivateCrtKey
implements SshRsaPrivateCrtKey

Represents a RSA key and implements the SshPrivateKey interface.

Author:
Lee David Painter

Field Summary
 
Fields inherited from class com.maverick.crypto.publickey.RsaPrivateCrtKey
crtCoefficient, primeExponentP, primeExponentQ, primeP, primeQ, publicExponent
 
Fields inherited from class com.maverick.crypto.publickey.RsaPrivateKey
ASN_SHA1, privateExponent
 
Fields inherited from class com.maverick.crypto.publickey.RsaKey
modulus
 
Constructor Summary
Ssh2RsaPrivateCrtKey(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger primeP, java.math.BigInteger primeQ, java.math.BigInteger crtCoefficient)
           
Ssh2RsaPrivateCrtKey(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)
           
Ssh2RsaPrivateCrtKey(com.maverick.crypto.publickey.RsaPrivateCrtKey key)
           
 
Method Summary
 java.math.BigInteger doPrivate(java.math.BigInteger input)
           
 java.lang.String getAlgorithm()
           
 
Methods inherited from class com.maverick.crypto.publickey.RsaPrivateCrtKey
getCrtCoefficient, getPrimeExponentP, getPrimeExponentQ, getPrimeP, getPrimeQ, getPublicExponent, sign
 
Methods inherited from class com.maverick.crypto.publickey.RsaPrivateKey
equals, getPrivateExponent, unsignedBigIntToBytes
 
Methods inherited from class com.maverick.crypto.publickey.RsaKey
getBitLength, getModulus, setModulus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.maverick.ssh.components.SshRsaPrivateCrtKey
getCrtCoefficient, getPrimeExponentP, getPrimeExponentQ, getPrimeP, getPrimeQ, getPublicExponent
 
Methods inherited from interface com.maverick.ssh.components.SshRsaPrivateKey
getModulus, getPrivateExponent, sign
 

Constructor Detail

Ssh2RsaPrivateCrtKey

public Ssh2RsaPrivateCrtKey(com.maverick.crypto.publickey.RsaPrivateCrtKey key)

Ssh2RsaPrivateCrtKey

public Ssh2RsaPrivateCrtKey(java.math.BigInteger modulus,
                            java.math.BigInteger publicExponent,
                            java.math.BigInteger privateExponent,
                            java.math.BigInteger primeP,
                            java.math.BigInteger primeQ,
                            java.math.BigInteger crtCoefficient)

Ssh2RsaPrivateCrtKey

public Ssh2RsaPrivateCrtKey(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)
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface SshPrivateKey

doPrivate

public java.math.BigInteger doPrivate(java.math.BigInteger input)
Specified by:
doPrivate in interface SshRsaPrivateCrtKey


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