Skip to content

Commit 4d53747

Browse files
authored
Merge pull request #412 from webauthn4j/polish-code
Polish code
2 parents dc4721e + 9d00820 commit 4d53747

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webauthn4j-spring-security-core/src/main/java/com/webauthn4j/springframework/security/WebAuthnAuthenticationRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public WebAuthnAuthenticationRequest(byte[] credentialId,
4343
byte[] signature,
4444
String clientExtensionsJSON) {
4545

46-
this.credentialId = credentialId;
47-
this.clientDataJSON = clientDataJSON;
48-
this.authenticatorData = authenticatorData;
49-
this.signature = signature;
46+
this.credentialId = ArrayUtil.clone(credentialId);
47+
this.clientDataJSON = ArrayUtil.clone(clientDataJSON);
48+
this.authenticatorData = ArrayUtil.clone(authenticatorData);
49+
this.signature = ArrayUtil.clone(signature);
5050
this.clientExtensionsJSON = clientExtensionsJSON;
5151
}
5252

0 commit comments

Comments
 (0)