Skip to content

Commit 9dce286

Browse files
Cleanup
1 parent 60bebd1 commit 9dce286

12 files changed

+27
-268
lines changed

web/src/main/java/org/springframework/security/web/webauthn/api/AuthenticatorTransport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* order to obtain an assertion for a specific credential.
2424
*
2525
* @author Rob Winch
26+
* @author Justin Cranford
2627
* @since 6.4
2728
*/
2829
public final class AuthenticatorTransport {

web/src/main/java/org/springframework/security/web/webauthn/api/COSEAlgorithmIdentifier.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* used to identify a cryptographic algorithm.
2323
*
2424
* @author Rob Winch
25+
* @author Justin Cranford
2526
* @since 6.4
2627
* @see PublicKeyCredentialParameters#getAlg()
2728
*/

web/src/main/java/org/springframework/security/web/webauthn/api/PublicKeyCredentialParameters.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* is used to supply additional parameters when creating a new credential.
2323
*
2424
* @author Rob Winch
25+
* @author Justin Cranford
2526
* @since 6.4
2627
* @see PublicKeyCredentialCreationOptions#getPubKeyCredParams()
2728
*/

web/src/main/java/org/springframework/security/web/webauthn/jackson/AuthenticatorSelectionCriteriaDeserializer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
/**
3232
* Jackson deserializer for {@link AuthenticatorSelectionCriteria}
3333
*
34-
* @author Rob Winch
3534
* @author Justin Cranford
36-
* @since 6.4
35+
* @since 6.5
3736
*/
3837
@SuppressWarnings("serial")
3938
class AuthenticatorSelectionCriteriaDeserializer extends StdDeserializer<AuthenticatorSelectionCriteria> {

web/src/main/java/org/springframework/security/web/webauthn/jackson/AuthenticatorSelectionCriteriaSerializer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
/**
2727
* Jackson serializer for {@link AuthenticatorSelectionCriteria}
2828
*
29-
* @author Rob Winch
3029
* @author Justin Cranford
31-
* @since 6.4
30+
* @since 6.5
3231
*/
3332
@SuppressWarnings("serial")
3433
class AuthenticatorSelectionCriteriaSerializer extends StdSerializer<AuthenticatorSelectionCriteria> {

web/src/main/java/org/springframework/security/web/webauthn/jackson/PublicKeyCredentialTypeMixin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* Jackson mixin for {@link PublicKeyCredentialType}
2626
*
2727
* @author Rob Winch
28+
* @author Justin Cranford
2829
* @since 6.4
2930
*/
3031
abstract class PublicKeyCredentialTypeMixin {

web/src/main/java/org/springframework/security/web/webauthn/jackson/ResidentKeyRequirementMixin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
/**
2424
* Jackson mixin for {@link ResidentKeyRequirement}
2525
*
26+
* @author Rob Winch
2627
* @author Justin Cranford
27-
* @since 6.5
28+
* @since 6.4
2829
*/
2930
@JsonSerialize(using = ResidentKeyRequirementSerializer.class)
3031
@JsonDeserialize(using = ResidentKeyRequirementDeserializer.class)

web/src/test/java/org/springframework/security/web/webauthn/jackson/JacksonTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class JacksonTests {
5353
void setup() {
5454
this.mapper = new ObjectMapper();
5555
this.mapper.registerModule(new WebauthnJackson2Module());
56-
this.mapper.registerModule(new WebauthnJackson2Module());
5756
this.mapper.registerModule(new JavaTimeModule());
5857
}
5958

web/src/test/java/org/springframework/security/web/webauthn/jackson/MinPinLengthAuthenticationExtensionsClientInput.java

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
1+
/*
2+
* Copyright 2002-2024 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.security.web.webauthn.jackson;
218

319
import org.springframework.security.web.webauthn.api.AuthenticationExtensionsClientInput;
420

5-
// ImmutableAuthenticationExtensionsClientInputs wraps a List<AuthenticationExtensionsClientInput<T>>.
6-
// Since only CredProtectAuthenticationExtensionsClientInput implements AuthenticationExtensionsClientInput<T>,
7-
// a second class is needed to help test with two extensions.
821
/**
922
* Implements <a href=
1023
* "https://fidoalliance.org/specs/fido-v2.2-rd-20230321/fido-client-to-authenticator-protocol-v2.2-rd-20230321.html#sctn-minpinlength-extension">

web/src/test/java/org/springframework/security/web/webauthn/jackson/MyWebauthnMixins.java

Lines changed: 0 additions & 254 deletions
This file was deleted.

0 commit comments

Comments
 (0)