loadPrivateKeyFromPKCS8PemString method

dynamic loadPrivateKeyFromPKCS8PemString(
  1. String pem
)

Load the privateKey from a PKCS8 encoded pem string

Implementation

loadPrivateKeyFromPKCS8PemString(String pem) {
  assert(
      privateKey == null, 'KeyPair already has a privateKey already loaded');
  privateKey = ninja.RSAPrivateKey.fromPEM(pem);
}