From 8f0273685a8c233e88fa6a7ed65c9218e032c317 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Wed, 5 Jun 2024 15:10:14 +0200 Subject: [PATCH] add new policy values --- .../java/com/yubico/yubikit/piv/PinPolicy.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/piv/src/main/java/com/yubico/yubikit/piv/PinPolicy.java b/piv/src/main/java/com/yubico/yubikit/piv/PinPolicy.java index a5990598..d40f7437 100755 --- a/piv/src/main/java/com/yubico/yubikit/piv/PinPolicy.java +++ b/piv/src/main/java/com/yubico/yubikit/piv/PinPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 Yubico. + * Copyright (C) 2019-2022,2024 Yubico. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,7 +40,17 @@ public enum PinPolicy { /** * The PIN must be verified each time the key is to be used, just prior to using it. */ - ALWAYS(0x3); + ALWAYS(0x3), + + /** + * PIN or biometrics must be verified for the session, prior to using the key. + */ + MATCH_ONCE(0x4), + + /** + * PIN or biometrics must be verified each time the key is to be used, just prior to using it. + */ + MATCH_ALWAYS(0x5); public final int value;