Constructor and Description |
---|
RSAKeyInfo(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)
Creates a new RSAKeyInfo object.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
getCrtCoefficient() |
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getPrimeExponentP() |
java.math.BigInteger |
getPrimeExponentQ() |
java.math.BigInteger |
getPrimeP() |
java.math.BigInteger |
getPrimeQ() |
java.math.BigInteger |
getPrivateExponent() |
java.security.spec.KeySpec |
getPrivateKeySpec() |
java.math.BigInteger |
getPublicExponent() |
java.security.spec.KeySpec |
getPublicKeySpec() |
static RSAKeyInfo |
getRSAKeyInfo(SimpleASNReader asn) |
static void |
writeRSAKeyInfo(SimpleASNWriter asn,
RSAKeyInfo keyInfo) |
public RSAKeyInfo(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)
modulus
- publicExponent
- privateExponent
- primeP
- primeQ
- primeExponentP
- primeExponentQ
- crtCoefficient
- public java.security.spec.KeySpec getPrivateKeySpec()
getPrivateKeySpec
in interface KeyInfo
public java.security.spec.KeySpec getPublicKeySpec()
getPublicKeySpec
in interface KeyInfo
public java.math.BigInteger getCrtCoefficient()
public java.math.BigInteger getModulus()
public java.math.BigInteger getPrimeExponentP()
public java.math.BigInteger getPrimeExponentQ()
public java.math.BigInteger getPrimeP()
public java.math.BigInteger getPrimeQ()
public java.math.BigInteger getPrivateExponent()
public java.math.BigInteger getPublicExponent()
public static RSAKeyInfo getRSAKeyInfo(SimpleASNReader asn) throws java.io.IOException
asn
- java.io.IOException
public static void writeRSAKeyInfo(SimpleASNWriter asn, RSAKeyInfo keyInfo)
asn
- keyInfo
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.