toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case GrantOperation.decrypt:
      return 'Decrypt';
    case GrantOperation.encrypt:
      return 'Encrypt';
    case GrantOperation.generateDataKey:
      return 'GenerateDataKey';
    case GrantOperation.generateDataKeyWithoutPlaintext:
      return 'GenerateDataKeyWithoutPlaintext';
    case GrantOperation.reEncryptFrom:
      return 'ReEncryptFrom';
    case GrantOperation.reEncryptTo:
      return 'ReEncryptTo';
    case GrantOperation.sign:
      return 'Sign';
    case GrantOperation.verify:
      return 'Verify';
    case GrantOperation.getPublicKey:
      return 'GetPublicKey';
    case GrantOperation.createGrant:
      return 'CreateGrant';
    case GrantOperation.retireGrant:
      return 'RetireGrant';
    case GrantOperation.describeKey:
      return 'DescribeKey';
    case GrantOperation.generateDataKeyPair:
      return 'GenerateDataKeyPair';
    case GrantOperation.generateDataKeyPairWithoutPlaintext:
      return 'GenerateDataKeyPairWithoutPlaintext';
  }
}