Package com.sshtools.j2ssh.openssh
Class RSAKeyInfo
java.lang.Object
com.sshtools.j2ssh.openssh.RSAKeyInfo
- All Implemented Interfaces:
KeyInfo
- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionRSAKeyInfo
(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) Creates a new RSAKeyInfo object. -
Method Summary
Modifier and TypeMethodDescriptionstatic RSAKeyInfo
static void
writeRSAKeyInfo
(SimpleASNWriter asn, RSAKeyInfo keyInfo)
-
Constructor Details
-
RSAKeyInfo
public RSAKeyInfo(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) Creates a new RSAKeyInfo object.- Parameters:
modulus
-publicExponent
-privateExponent
-primeP
-primeQ
-primeExponentP
-primeExponentQ
-crtCoefficient
-
-
-
Method Details
-
getPrivateKeySpec
- Specified by:
getPrivateKeySpec
in interfaceKeyInfo
- Returns:
-
getPublicKeySpec
- Specified by:
getPublicKeySpec
in interfaceKeyInfo
- Returns:
-
getCrtCoefficient
- Returns:
-
getModulus
- Returns:
-
getPrimeExponentP
- Returns:
-
getPrimeExponentQ
- Returns:
-
getPrimeP
- Returns:
-
getPrimeQ
- Returns:
-
getPrivateExponent
- Returns:
-
getPublicExponent
- Returns:
-
getRSAKeyInfo
- Parameters:
asn
-- Returns:
- Throws:
IOException
-
writeRSAKeyInfo
- Parameters:
asn
-keyInfo
-
-