com.sshtools.j2ssh.openssh

Class RSAKeyInfo

Implemented Interfaces:
KeyInfo

public class RSAKeyInfo
extends java.lang.Object
implements KeyInfo

Version:
$Revision: 1.13 $
Author:
$author$

Constructor Summary

RSAKeyInfo(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
Creates a new RSAKeyInfo object.

Method Summary

BigInteger
getCrtCoefficient()
BigInteger
getModulus()
BigInteger
getPrimeExponentP()
BigInteger
getPrimeExponentQ()
BigInteger
getPrimeP()
BigInteger
getPrimeQ()
BigInteger
getPrivateExponent()
KeySpec
getPrivateKeySpec()
BigInteger
getPublicExponent()
KeySpec
getPublicKeySpec()
static RSAKeyInfo
getRSAKeyInfo(SimpleASNReader asn)
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

getCrtCoefficient

public BigInteger getCrtCoefficient()
Returns:

getModulus

public BigInteger getModulus()
Returns:

getPrimeExponentP

public BigInteger getPrimeExponentP()
Returns:

getPrimeExponentQ

public BigInteger getPrimeExponentQ()
Returns:

getPrimeP

public BigInteger getPrimeP()
Returns:

getPrimeQ

public BigInteger getPrimeQ()
Returns:

getPrivateExponent

public BigInteger getPrivateExponent()
Returns:

getPrivateKeySpec

public KeySpec getPrivateKeySpec()
Specified by:
getPrivateKeySpec in interface KeyInfo
Returns:

getPublicExponent

public BigInteger getPublicExponent()
Returns:

getPublicKeySpec

public KeySpec getPublicKeySpec()
Specified by:
getPublicKeySpec in interface KeyInfo
Returns:

getRSAKeyInfo

public static RSAKeyInfo getRSAKeyInfo(SimpleASNReader asn)
            throws IOException
Parameters:
asn -
Returns:

writeRSAKeyInfo

public static void writeRSAKeyInfo(SimpleASNWriter asn,
                                   RSAKeyInfo keyInfo)
Parameters:
asn -
keyInfo -

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.