toCustomerMasterKeySpec method
Implementation
CustomerMasterKeySpec toCustomerMasterKeySpec() {
switch (this) {
case 'RSA_2048':
return CustomerMasterKeySpec.rsa_2048;
case 'RSA_3072':
return CustomerMasterKeySpec.rsa_3072;
case 'RSA_4096':
return CustomerMasterKeySpec.rsa_4096;
case 'ECC_NIST_P256':
return CustomerMasterKeySpec.eccNistP256;
case 'ECC_NIST_P384':
return CustomerMasterKeySpec.eccNistP384;
case 'ECC_NIST_P521':
return CustomerMasterKeySpec.eccNistP521;
case 'ECC_SECG_P256K1':
return CustomerMasterKeySpec.eccSecgP256k1;
case 'SYMMETRIC_DEFAULT':
return CustomerMasterKeySpec.symmetricDefault;
}
throw Exception('$this is not known in enum CustomerMasterKeySpec');
}