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
JoseException
public RSAPrivateKey privateKey(BigInteger modulus, BigInteger privateExponent) throws JoseException
JoseException
public RSAPrivateKey privateKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) throws JoseException
JoseException
public RSAPrivateKey getRsaPrivateKey(RSAPrivateKeySpec keySpec) throws JoseException
JoseException
public KeyPair generateKeyPair(int bits) throws JoseException
JoseException
protected KeyFactory getKeyFactory() throws JoseException
JoseException
protected KeyPairGenerator getKeyPairGenerator() throws JoseException
JoseException
public boolean isAvailable()
Copyright © 2015. All rights reserved.