toExtendedKeyUsageName method
Implementation
ExtendedKeyUsageName toExtendedKeyUsageName() {
switch (this) {
case 'TLS_WEB_SERVER_AUTHENTICATION':
return ExtendedKeyUsageName.tlsWebServerAuthentication;
case 'TLS_WEB_CLIENT_AUTHENTICATION':
return ExtendedKeyUsageName.tlsWebClientAuthentication;
case 'CODE_SIGNING':
return ExtendedKeyUsageName.codeSigning;
case 'EMAIL_PROTECTION':
return ExtendedKeyUsageName.emailProtection;
case 'TIME_STAMPING':
return ExtendedKeyUsageName.timeStamping;
case 'OCSP_SIGNING':
return ExtendedKeyUsageName.ocspSigning;
case 'IPSEC_END_SYSTEM':
return ExtendedKeyUsageName.ipsecEndSystem;
case 'IPSEC_TUNNEL':
return ExtendedKeyUsageName.ipsecTunnel;
case 'IPSEC_USER':
return ExtendedKeyUsageName.ipsecUser;
case 'ANY':
return ExtendedKeyUsageName.any;
case 'NONE':
return ExtendedKeyUsageName.none;
case 'CUSTOM':
return ExtendedKeyUsageName.custom;
}
throw Exception('$this is not known in enum ExtendedKeyUsageName');
}