|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.jce.provider.JCERSAPrivateKey org.bouncycastle.jce.provider.JCERSAPrivateCrtKey
public class JCERSAPrivateCrtKey
A provider representation for a RSA private key, with CRT factors included.
Field Summary | |
---|---|
private java.math.BigInteger |
crtCoefficient
|
private java.math.BigInteger |
primeExponentP
|
private java.math.BigInteger |
primeExponentQ
|
private java.math.BigInteger |
primeP
|
private java.math.BigInteger |
primeQ
|
private java.math.BigInteger |
publicExponent
|
(package private) static long |
serialVersionUID
|
Fields inherited from class org.bouncycastle.jce.provider.JCERSAPrivateKey |
---|
modulus, privateExponent |
Constructor Summary | |
---|---|
JCERSAPrivateCrtKey(PrivateKeyInfo info)
construct an RSA key from a private key info object. |
|
JCERSAPrivateCrtKey(java.security.interfaces.RSAPrivateCrtKey key)
construct a private key from another RSAPrivateCrtKey. |
|
JCERSAPrivateCrtKey(RSAPrivateCrtKeyParameters key)
construct a private key from it's org.bouncycastle.crypto equivalent. |
|
JCERSAPrivateCrtKey(java.security.spec.RSAPrivateCrtKeySpec spec)
construct a private key from an RSAPrivateCrtKeySpec |
|
JCERSAPrivateCrtKey(RSAPrivateKeyStructure key)
construct an RSA key from a ASN.1 RSA private key object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.math.BigInteger |
getCrtCoefficient()
return the CRT coefficient. |
byte[] |
getEncoded()
Return a PKCS8 representation of the key. |
java.lang.String |
getFormat()
return the encoding format we produce in getEncoded(). |
java.math.BigInteger |
getPrimeExponentP()
return the prime exponent for P. |
java.math.BigInteger |
getPrimeExponentQ()
return the prime exponent for Q. |
java.math.BigInteger |
getPrimeP()
return the prime P. |
java.math.BigInteger |
getPrimeQ()
return the prime Q. |
java.math.BigInteger |
getPublicExponent()
return the public exponent. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class org.bouncycastle.jce.provider.JCERSAPrivateKey |
---|
getAlgorithm, getBagAttribute, getBagAttributeKeys, getModulus, getPrivateExponent, setBagAttribute |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.interfaces.RSAPrivateKey |
---|
getPrivateExponent |
Methods inherited from interface java.security.Key |
---|
getAlgorithm |
Methods inherited from interface java.security.interfaces.RSAKey |
---|
getModulus |
Field Detail |
---|
static final long serialVersionUID
private java.math.BigInteger publicExponent
private java.math.BigInteger primeP
private java.math.BigInteger primeQ
private java.math.BigInteger primeExponentP
private java.math.BigInteger primeExponentQ
private java.math.BigInteger crtCoefficient
Constructor Detail |
---|
JCERSAPrivateCrtKey(RSAPrivateCrtKeyParameters key)
key
- the parameters object representing the private key.JCERSAPrivateCrtKey(java.security.spec.RSAPrivateCrtKeySpec spec)
spec
- the spec to be used in construction.JCERSAPrivateCrtKey(java.security.interfaces.RSAPrivateCrtKey key)
key
- the object implementing the RSAPrivateCrtKey interface.JCERSAPrivateCrtKey(PrivateKeyInfo info)
JCERSAPrivateCrtKey(RSAPrivateKeyStructure key)
Method Detail |
---|
public java.lang.String getFormat()
getFormat
in interface java.security.Key
getFormat
in class JCERSAPrivateKey
public byte[] getEncoded()
getEncoded
in interface java.security.Key
getEncoded
in class JCERSAPrivateKey
public java.math.BigInteger getPublicExponent()
getPublicExponent
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeP()
getPrimeP
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeQ()
getPrimeQ
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeExponentP()
getPrimeExponentP
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeExponentQ()
getPrimeExponentQ
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getCrtCoefficient()
getCrtCoefficient
in interface java.security.interfaces.RSAPrivateCrtKey
public int hashCode()
hashCode
in class JCERSAPrivateKey
public boolean equals(java.lang.Object o)
equals
in class JCERSAPrivateKey
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |