Class Rsa
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.internal.auth.Rsa
-
public final class Rsa extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
privateKeyFromPkcs8
public static PrivateKey privateKeyFromPkcs8(byte[] pkcs8) throws InvalidKeySpecException
Returns a private key constructed from the given DER bytes in PKCS#8 format.- Throws:
InvalidKeySpecException
-
privateKeyFromPkcs1
public static PrivateKey privateKeyFromPkcs1(byte[] pkcs1) throws InvalidKeySpecException
Returns a private key constructed from the given DER bytes in PKCS#1 format.- Throws:
InvalidKeySpecException
-
publicKeyFrom
public static PublicKey publicKeyFrom(byte[] derBytes) throws InvalidKeySpecException
Returns a public key constructed from the given DER bytes.- Throws:
InvalidKeySpecException
-
-