From 9ce1422f34500b57a076e5f13418651b2466512f Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Mon, 11 Oct 2021 16:06:37 +0200 Subject: [PATCH] Deprecate TokenBindingStatus.fromJsonString() --- NEWS | 2 ++ .../java/com/yubico/webauthn/data/TokenBindingStatus.java | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index d9db4c8b3..6cc805dc9 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ Deprecated features: release will remove this option and always behave as if the option had been set to `true`. * Enum value `AttestationType.ECDAA`. ECDAA was removed in WebAuthn Level 2. +* Function `TokenBindingStatus.fromJsonString(String)` deprecated. It should not + have been part of the public API to begin with. == Version 1.12.3 (unreleased) == diff --git a/webauthn-server-core/src/main/java/com/yubico/webauthn/data/TokenBindingStatus.java b/webauthn-server-core/src/main/java/com/yubico/webauthn/data/TokenBindingStatus.java index b279a295a..2b177aa63 100644 --- a/webauthn-server-core/src/main/java/com/yubico/webauthn/data/TokenBindingStatus.java +++ b/webauthn-server-core/src/main/java/com/yubico/webauthn/data/TokenBindingStatus.java @@ -66,6 +66,12 @@ private static Optional fromString(@NonNull String value) { } @JsonCreator + @Deprecated + /** + * @deprecated Use + * {@link CollectedClientData#getTokenBinding()}.{@link TokenBindingInfo#getStatus() getStatus()} + * instead. + */ public static TokenBindingStatus fromJsonString(@NonNull String value) { return fromString(value) .orElseThrow(