public class RsaKeyUtil extends Object
| Constructor and Description |
|---|
RsaKeyUtil() |
| Modifier and Type | Method and Description |
|---|---|
KeyPair |
generateKeyPair(int bits) |
protected KeyFactory |
getKeyFactory() |
protected KeyPairGenerator |
getKeyPairGenerator() |
RSAPrivateKey |
getRsaPrivateKey(RSAPrivateKeySpec keySpec) |
boolean |
isAvailable() |
RSAPrivateKey |
privateKey(BigInteger modulus,
BigInteger privateExponent) |
RSAPrivateKey |
privateKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient) |
RSAPublicKey |
publicKey(BigInteger modulus,
BigInteger publicExponent) |
public static final String RSA
public RSAPublicKey publicKey(BigInteger modulus, BigInteger publicExponent) throws JoseException
JoseExceptionpublic RSAPrivateKey privateKey(BigInteger modulus, BigInteger privateExponent) throws JoseException
JoseExceptionpublic RSAPrivateKey privateKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) throws JoseException
JoseExceptionpublic RSAPrivateKey getRsaPrivateKey(RSAPrivateKeySpec keySpec) throws JoseException
JoseExceptionpublic KeyPair generateKeyPair(int bits) throws JoseException
JoseExceptionprotected KeyFactory getKeyFactory() throws JoseException
JoseExceptionprotected KeyPairGenerator getKeyPairGenerator() throws JoseException
JoseExceptionpublic boolean isAvailable()
Copyright © 2015. All rights reserved.