toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case KeyAlgorithm.rsa_2048:
      return 'RSA_2048';
    case KeyAlgorithm.rsa_1024:
      return 'RSA_1024';
    case KeyAlgorithm.rsa_4096:
      return 'RSA_4096';
    case KeyAlgorithm.ecPrime256v1:
      return 'EC_prime256v1';
    case KeyAlgorithm.ecSecp384r1:
      return 'EC_secp384r1';
    case KeyAlgorithm.ecSecp521r1:
      return 'EC_secp521r1';
  }
}