toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RevocationReason.unspecified:
      return 'UNSPECIFIED';
    case RevocationReason.keyCompromise:
      return 'KEY_COMPROMISE';
    case RevocationReason.caCompromise:
      return 'CA_COMPROMISE';
    case RevocationReason.affiliationChanged:
      return 'AFFILIATION_CHANGED';
    case RevocationReason.superceded:
      return 'SUPERCEDED';
    case RevocationReason.cessationOfOperation:
      return 'CESSATION_OF_OPERATION';
    case RevocationReason.certificateHold:
      return 'CERTIFICATE_HOLD';
    case RevocationReason.removeFromCrl:
      return 'REMOVE_FROM_CRL';
    case RevocationReason.privilegeWithdrawn:
      return 'PRIVILEGE_WITHDRAWN';
    case RevocationReason.aACompromise:
      return 'A_A_COMPROMISE';
  }
}