toRevocationReason method
Implementation
RevocationReason toRevocationReason() {
switch (this) {
case 'UNSPECIFIED':
return RevocationReason.unspecified;
case 'KEY_COMPROMISE':
return RevocationReason.keyCompromise;
case 'CA_COMPROMISE':
return RevocationReason.caCompromise;
case 'AFFILIATION_CHANGED':
return RevocationReason.affiliationChanged;
case 'SUPERCEDED':
return RevocationReason.superceded;
case 'CESSATION_OF_OPERATION':
return RevocationReason.cessationOfOperation;
case 'CERTIFICATE_HOLD':
return RevocationReason.certificateHold;
case 'REMOVE_FROM_CRL':
return RevocationReason.removeFromCrl;
case 'PRIVILEGE_WITHDRAWN':
return RevocationReason.privilegeWithdrawn;
case 'A_A_COMPROMISE':
return RevocationReason.aACompromise;
}
throw Exception('$this is not known in enum RevocationReason');
}