File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
webauthn-server-attestation/src
main/java/com/yubico/webauthn/attestation
test/scala/com/yubico/webauthn/attestation Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ private static byte[] parseSerNum(byte[] bytes) {
45
45
}
46
46
}
47
47
48
- public static Optional <ByteArray > parseFidoSerNumExtension (X509Certificate cert ) {
48
+ public static Optional <ByteArray > parseFidoSernumExtension (X509Certificate cert ) {
49
49
return Optional .ofNullable (cert .getExtensionValue (ID_FIDO_GEN_CE_SERNUM ))
50
50
.map (CertificateUtil ::parseSerNum )
51
51
.map (ByteArray ::new );
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class CertificateUtilSpec
69
69
70
70
val result =
71
71
CertificateUtil
72
- .parseFidoSerNumExtension (cert)
72
+ .parseFidoSernumExtension (cert)
73
73
.toScala
74
74
result should equal(Some (sernum))
75
75
}
@@ -80,7 +80,7 @@ class CertificateUtilSpec
80
80
TestAuthenticator .generateAttestationCertificate(extensions = Nil )
81
81
val result =
82
82
CertificateUtil
83
- .parseFidoSerNumExtension (cert)
83
+ .parseFidoSernumExtension (cert)
84
84
.toScala
85
85
result should be(None )
86
86
}
@@ -107,7 +107,7 @@ class CertificateUtilSpec
107
107
108
108
val result =
109
109
CertificateUtil
110
- .parseFidoSerNumExtension (cert)
110
+ .parseFidoSernumExtension (cert)
111
111
.toScala
112
112
113
113
result should equal(Some (ByteArray .fromHex(" 01AFCEFB" )))
You can’t perform that action at this time.
0 commit comments