loadPublicKeyFromPKCS8PemString method

dynamic loadPublicKeyFromPKCS8PemString(
  1. String pem
)

Load the publicKey from a PKCS8 encoded pem string

Implementation

loadPublicKeyFromPKCS8PemString(String pem) {
  assert(publicKey == null, 'KeyPair already has a publicKey already loaded');
  publicKey = ninja.RSAPublicKey.fromPEM(pem);
}