toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RevocationReason.unspecified:
      return 'UNSPECIFIED';
    case RevocationReason.keyCompromise:
      return 'KEY_COMPROMISE';
    case RevocationReason.certificateAuthorityCompromise:
      return 'CERTIFICATE_AUTHORITY_COMPROMISE';
    case RevocationReason.affiliationChanged:
      return 'AFFILIATION_CHANGED';
    case RevocationReason.superseded:
      return 'SUPERSEDED';
    case RevocationReason.cessationOfOperation:
      return 'CESSATION_OF_OPERATION';
    case RevocationReason.privilegeWithdrawn:
      return 'PRIVILEGE_WITHDRAWN';
    case RevocationReason.aACompromise:
      return 'A_A_COMPROMISE';
  }
}