Class EcKeyLoader

java.lang.Object
software.amazon.awssdk.services.signin.internal.EcKeyLoader

@SdkInternalApi public final class EcKeyLoader extends Object
  • Method Details

    • loadSec1Pem

      public static Pair<ECPrivateKey,ECPublicKey> loadSec1Pem(String pem)
      Load ECPrivateKey and ECPublicKey from a SEC1 / RFC 5915 ASN.1 formated PEM.

      The only supported curve is: secp256r1.

      Parameters:
      pem - EC1 / RFC 5915 ASN.1 formated PEM contents
      Returns:
      The ECPrivateKey and ECPublicKey
    • pemToDer

      public static byte[] pemToDer(String pem)