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.BigIntegerApprivate java.math.BigIntegerAqprivate java.math.BigIntegerdPprivate java.math.BigIntegerdQprivate java.math.BigIntegerpprivate java.math.BigIntegerqprivate java.math.BigIntegerqInvprivate static longserialVersionUID
-
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.StringgetAlgorithm()java.math.BigIntegergetAp()java.math.BigIntegergetAq()java.math.BigIntegergetdP()java.math.BigIntegergetdQ()byte[]getEncoded()java.lang.StringgetFormat()java.math.BigIntegergetP()java.math.BigIntegergetQ()java.math.BigIntegergetQInv()voidsetAp(java.math.BigInteger ap)voidsetAq(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:
getEncodedin interfacejava.security.Key
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin 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()
-
-