Package com.trilead.ssh2.signature
Class RSAPrivateKey
- java.lang.Object
-
- com.trilead.ssh2.signature.RSAPrivateKey
-
public class RSAPrivateKey extends java.lang.Object
RSAPrivateKey.- Version:
- $Id: RSAPrivateKey.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
-
Constructor Summary
Constructors Constructor Description RSAPrivateKey(java.math.BigInteger d, java.math.BigInteger e, java.math.BigInteger n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getD()
java.math.BigInteger
getE()
java.math.BigInteger
getN()
RSAPublicKey
getPublicKey()
java.security.KeyPair
toJCEKeyPair()
Converts this to a JCE API representation of the RSA key pair.
-
-
-
Method Detail
-
getD
public java.math.BigInteger getD()
-
getE
public java.math.BigInteger getE()
-
getN
public java.math.BigInteger getN()
-
getPublicKey
public RSAPublicKey getPublicKey()
-
toJCEKeyPair
public java.security.KeyPair toJCEKeyPair() throws java.security.GeneralSecurityException
Converts this to a JCE API representation of the RSA key pair.- Throws:
java.security.GeneralSecurityException
-
-