Package org.jose4j.keys
Class RsaKeyUtil
java.lang.Object
org.jose4j.keys.RsaKeyUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPemEncoded(String pem) generateKeyPair(int bits) protected KeyFactoryprotected KeyPairGeneratorgetRsaPrivateKey(RSAPrivateKeySpec keySpec) booleanstatic StringprivateKey(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)
-
Field Details
-
RSA
- See Also:
-
provider
-
secureRandom
-
-
Constructor Details
-
RsaKeyUtil
public RsaKeyUtil() -
RsaKeyUtil
-
-
Method Details
-
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
-
getKeyFactory
- Throws:
JoseException
-
getKeyPairGenerator
- Throws:
JoseException
-
fromPemEncoded
- Throws:
JoseExceptionInvalidKeySpecException
-
pemEncode
-
isAvailable
public boolean isAvailable()
-