toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DataKeyPairSpec.rsa_2048:
      return 'RSA_2048';
    case DataKeyPairSpec.rsa_3072:
      return 'RSA_3072';
    case DataKeyPairSpec.rsa_4096:
      return 'RSA_4096';
    case DataKeyPairSpec.eccNistP256:
      return 'ECC_NIST_P256';
    case DataKeyPairSpec.eccNistP384:
      return 'ECC_NIST_P384';
    case DataKeyPairSpec.eccNistP521:
      return 'ECC_NIST_P521';
    case DataKeyPairSpec.eccSecgP256k1:
      return 'ECC_SECG_P256K1';
  }
}