Package org.jose4j.keys
Class RsaKeyUtil
java.lang.Object
org.jose4j.keys.KeyPairUtil
org.jose4j.keys.RsaKeyUtil
-
Field Summary
FieldsFields inherited from class org.jose4j.keys.KeyPairUtil
provider, secureRandom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateKeyPair(int bits) (package private) StringgetRsaPrivateKey(RSAPrivateKeySpec keySpec) privateKey(BigInteger modulus, BigInteger privateExponent) privateKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) publicKey(BigInteger modulus, BigInteger publicExponent) Methods inherited from class org.jose4j.keys.KeyPairUtil
fromPemEncoded, getKeyFactory, getKeyPairGenerator, isAvailable, pemEncode
-
Field Details
-
RSA
- See Also:
-
-
Constructor Details
-
RsaKeyUtil
public RsaKeyUtil() -
RsaKeyUtil
-
-
Method Details
-
getAlgorithm
String getAlgorithm()- Specified by:
getAlgorithmin classKeyPairUtil
-
publicKey
- Throws:
JoseException
-
privateKey
public RSAPrivateKey privateKey(BigInteger modulus, BigInteger privateExponent) throws JoseException - Throws:
JoseException
-
privateKey
public RSAPrivateKey privateKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) throws JoseException - Throws:
JoseException
-
getRsaPrivateKey
- Throws:
JoseException
-
generateKeyPair
- Throws:
JoseException
-