toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case KeyUsageName.digitalSignature:
      return 'DIGITAL_SIGNATURE';
    case KeyUsageName.nonRepudiation:
      return 'NON_REPUDIATION';
    case KeyUsageName.keyEncipherment:
      return 'KEY_ENCIPHERMENT';
    case KeyUsageName.dataEncipherment:
      return 'DATA_ENCIPHERMENT';
    case KeyUsageName.keyAgreement:
      return 'KEY_AGREEMENT';
    case KeyUsageName.certificateSigning:
      return 'CERTIFICATE_SIGNING';
    case KeyUsageName.crlSigning:
      return 'CRL_SIGNING';
    case KeyUsageName.encipherOnly:
      return 'ENCIPHER_ONLY';
    case KeyUsageName.decipherOnly:
      return 'DECIPHER_ONLY';
    case KeyUsageName.any:
      return 'ANY';
    case KeyUsageName.custom:
      return 'CUSTOM';
  }
}