public class RsaUtil extends Object
| Constructor and Description |
|---|
RsaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
convertEncodedBytesToPrivateKey(byte[] encodedBytes) |
static PublicKey |
convertEncodedBytesToPublicKey(byte[] encodedBytes) |
static Cipher |
generateCipher() |
public static PublicKey convertEncodedBytesToPublicKey(byte[] encodedBytes) throws NoSuchAlgorithmException, InvalidKeySpecException
public static PrivateKey convertEncodedBytesToPrivateKey(byte[] encodedBytes) throws NoSuchAlgorithmException, InvalidKeySpecException
public static Cipher generateCipher() throws NoSuchPaddingException, NoSuchAlgorithmException
Copyright © 2019. All rights reserved.