Skip to content

Commit 9d00820

Browse files
committed
Polish code
1 parent 9de8e13 commit 9d00820

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)