Package org.kapott.cryptalgs
Class RSAPrivateCrtKey2
- java.lang.Object
-
- org.kapott.cryptalgs.RSAPrivateCrtKey2
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Key
,java.security.PrivateKey
,javax.security.auth.Destroyable
public class RSAPrivateCrtKey2 extends java.lang.Object implements java.security.PrivateKey
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.math.BigInteger
Ap
private java.math.BigInteger
Aq
private java.math.BigInteger
dP
private java.math.BigInteger
dQ
private java.math.BigInteger
p
private java.math.BigInteger
q
private java.math.BigInteger
qInv
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description RSAPrivateCrtKey2(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger dP, java.math.BigInteger dQ, java.math.BigInteger qInv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
java.math.BigInteger
getAp()
java.math.BigInteger
getAq()
java.math.BigInteger
getdP()
java.math.BigInteger
getdQ()
byte[]
getEncoded()
java.lang.String
getFormat()
java.math.BigInteger
getP()
java.math.BigInteger
getQ()
java.math.BigInteger
getQInv()
void
setAp(java.math.BigInteger ap)
void
setAq(java.math.BigInteger aq)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
p
private java.math.BigInteger p
-
q
private java.math.BigInteger q
-
dP
private java.math.BigInteger dP
-
dQ
private java.math.BigInteger dQ
-
qInv
private java.math.BigInteger qInv
-
Ap
private java.math.BigInteger Ap
-
Aq
private java.math.BigInteger Aq
-
-
Method Detail
-
getP
public java.math.BigInteger getP()
-
getQ
public java.math.BigInteger getQ()
-
getdP
public java.math.BigInteger getdP()
-
getdQ
public java.math.BigInteger getdQ()
-
getQInv
public java.math.BigInteger getQInv()
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfacejava.security.Key
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interfacejava.security.Key
-
setAp
public void setAp(java.math.BigInteger ap)
-
getAp
public java.math.BigInteger getAp()
-
setAq
public void setAq(java.math.BigInteger aq)
-
getAq
public java.math.BigInteger getAq()
-
-