mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 10:33:15 +03:00
Merge PR #1516
This commit is contained in:
commit
11ccd2c077
@ -278,6 +278,7 @@ class PivState with _$PivState {
|
||||
bool get protectedKey => derivedKey || storedKey;
|
||||
bool get needsAuth =>
|
||||
!authenticated && metadata?.managementKeyMetadata.defaultValue != true;
|
||||
bool get supportsMetadata => version.isAtLeast(5, 3);
|
||||
|
||||
factory PivState.fromJson(Map<String, dynamic> json) =>
|
||||
_$PivStateFromJson(json);
|
||||
|
@ -146,7 +146,8 @@ class _PivScreenState extends ConsumerState<PivScreen> {
|
||||
CertInfoTable(
|
||||
selected.certInfo,
|
||||
selected.metadata,
|
||||
alwaysIncludePrivate: true,
|
||||
alwaysIncludePrivate:
|
||||
pivState.supportsMetadata,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
],
|
||||
|
@ -90,7 +90,8 @@ class SlotDialog extends ConsumerWidget {
|
||||
child: CertInfoTable(
|
||||
certInfo,
|
||||
metadata,
|
||||
alwaysIncludePrivate: true,
|
||||
alwaysIncludePrivate:
|
||||
pivState.supportsMetadata,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user