public final class Rsa extends Object
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
privateKeyFromPkcs1(byte[] pkcs1)
Returns a private key constructed from the given DER bytes in PKCS#1 format.
|
static PrivateKey |
privateKeyFromPkcs8(byte[] pkcs8)
Returns a private key constructed from the given DER bytes in PKCS#8 format.
|
static PublicKey |
publicKeyFrom(byte[] derBytes)
Returns a public key constructed from the given DER bytes.
|
public static PrivateKey privateKeyFromPkcs8(byte[] pkcs8) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic static PrivateKey privateKeyFromPkcs1(byte[] pkcs1) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic static PublicKey publicKeyFrom(byte[] derBytes) throws InvalidKeySpecException
InvalidKeySpecExceptionCopyright © 2023. All rights reserved.