toRevocationReason method
Implementation
RevocationReason toRevocationReason() {
switch (this) {
case 'UNSPECIFIED':
return RevocationReason.unspecified;
case 'KEY_COMPROMISE':
return RevocationReason.keyCompromise;
case 'CERTIFICATE_AUTHORITY_COMPROMISE':
return RevocationReason.certificateAuthorityCompromise;
case 'AFFILIATION_CHANGED':
return RevocationReason.affiliationChanged;
case 'SUPERSEDED':
return RevocationReason.superseded;
case 'CESSATION_OF_OPERATION':
return RevocationReason.cessationOfOperation;
case 'PRIVILEGE_WITHDRAWN':
return RevocationReason.privilegeWithdrawn;
case 'A_A_COMPROMISE':
return RevocationReason.aACompromise;
}
throw Exception('$this is not known in enum RevocationReason');
}