toKeyUsageName method
Implementation
KeyUsageName toKeyUsageName() {
switch (this) {
case 'DIGITAL_SIGNATURE':
return KeyUsageName.digitalSignature;
case 'NON_REPUDIATION':
return KeyUsageName.nonRepudiation;
case 'KEY_ENCIPHERMENT':
return KeyUsageName.keyEncipherment;
case 'DATA_ENCIPHERMENT':
return KeyUsageName.dataEncipherment;
case 'KEY_AGREEMENT':
return KeyUsageName.keyAgreement;
case 'CERTIFICATE_SIGNING':
return KeyUsageName.certificateSigning;
case 'CRL_SIGNING':
return KeyUsageName.crlSigning;
case 'ENCIPHER_ONLY':
return KeyUsageName.encipherOnly;
case 'DECIPHER_ONLY':
return KeyUsageName.decipherOnly;
case 'ANY':
return KeyUsageName.any;
case 'CUSTOM':
return KeyUsageName.custom;
}
throw Exception('$this is not known in enum KeyUsageName');
}