Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new policy values #137

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions piv/src/main/java/com/yubico/yubikit/piv/PinPolicy.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;

Expand Down
Loading