Class Rsa
java.lang.Object
software.amazon.awssdk.services.cloudfront.internal.auth.Rsa
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
privateKeyFromPkcs8
Returns a private key constructed from the given DER bytes in PKCS#8 format.- Throws:
InvalidKeySpecException
-
privateKeyFromPkcs1
Returns a private key constructed from the given DER bytes in PKCS#1 format.- Throws:
InvalidKeySpecException
-
publicKeyFrom
Returns a public key constructed from the given DER bytes.- Throws:
InvalidKeySpecException
-