toSecretKey method
SecretKey
toSecretKey()
Implementation
SecretKey toSecretKey() {
switch (kty) {
case 'OCK':
return SecretKey(List<int>.unmodifiable(x ?? const <int>[]));
default:
throw StateError('Not a secret key (kty: $kty)');
}
}