Class RSAPrivateKey
- java.lang.Object
-
- io.jans.as.model.crypto.PrivateKey
-
- io.jans.as.model.crypto.signature.RSAPrivateKey
-
- All Implemented Interfaces:
JSONable
public class RSAPrivateKey extends PrivateKey
The Private Key for the RSA Algorithm- Version:
- July 31, 2016
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description RSAPrivateKey(SignatureAlgorithm signatureAlgorithm, java.lang.String modulus, java.lang.String privateExponent)
RSAPrivateKey(SignatureAlgorithm signatureAlgorithm, java.math.BigInteger modulus, java.math.BigInteger privateExponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getModulus()
java.math.BigInteger
getPrivateExponent()
void
setModulus(java.math.BigInteger modulus)
void
setPrivateExponent(java.math.BigInteger privateExponent)
org.json.JSONObject
toJSONObject()
java.lang.String
toString()
-
Methods inherited from class io.jans.as.model.crypto.PrivateKey
getKeyId, getSignatureAlgorithm, setKeyId, setSignatureAlgorithm
-
-
-
-
Constructor Detail
-
RSAPrivateKey
public RSAPrivateKey(SignatureAlgorithm signatureAlgorithm, java.math.BigInteger modulus, java.math.BigInteger privateExponent)
-
RSAPrivateKey
public RSAPrivateKey(SignatureAlgorithm signatureAlgorithm, java.lang.String modulus, java.lang.String privateExponent)
-
-
Method Detail
-
getModulus
public java.math.BigInteger getModulus()
-
setModulus
public void setModulus(java.math.BigInteger modulus)
-
getPrivateExponent
public java.math.BigInteger getPrivateExponent()
-
setPrivateExponent
public void setPrivateExponent(java.math.BigInteger privateExponent)
-
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONException
- Throws:
org.json.JSONException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-