Skip to content

Commit 6b18623

Browse files
committed
Add line breaks in TestAuthenticator
1 parent 0ee467d commit 6b18623

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

webauthn-server-core/src/test/scala/com/yubico/webauthn/TestAuthenticator.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ object TestAuthenticator {
181181
): JsonNode =
182182
makePackedAttestationStatement(authDataBytes, clientDataJson, signer)
183183
}
184+
184185
def fidoU2f(signer: AttestationSigner): AttestationMaker =
185186
new AttestationMaker {
186187
override val format = "fido-u2f"
@@ -191,6 +192,7 @@ object TestAuthenticator {
191192
): JsonNode =
192193
makeU2fAttestationStatement(authDataBytes, clientDataJson, signer)
193194
}
195+
194196
def androidSafetynet(
195197
cert: AttestationCert,
196198
ctsProfileMatch: Boolean = true,
@@ -209,6 +211,7 @@ object TestAuthenticator {
209211
ctsProfileMatch = ctsProfileMatch,
210212
)
211213
}
214+
212215
def apple(
213216
addNonceExtension: Boolean = true,
214217
nonceValue: Option[ByteArray] = None,
@@ -243,6 +246,7 @@ object TestAuthenticator {
243246
caKey,
244247
)
245248
}
249+
246250
def tpm(
247251
cert: AttestationCert,
248252
ver: Option[String] = Some("2.0"),
@@ -294,6 +298,7 @@ object TestAuthenticator {
294298
def cert: X509Certificate
295299
def certChain: List[(X509Certificate, PrivateKey)]
296300
}
301+
297302
case class SelfAttestation(keypair: KeyPair, alg: COSEAlgorithmIdentifier)
298303
extends AttestationSigner {
299304
override def key: PrivateKey = keypair.getPrivate
@@ -302,6 +307,7 @@ object TestAuthenticator {
302307
}
303308
override def certChain = Nil
304309
}
310+
305311
case class AttestationCert(
306312
override val cert: X509Certificate,
307313
override val key: PrivateKey,
@@ -313,6 +319,7 @@ object TestAuthenticator {
313319
keypair: (X509Certificate, PrivateKey),
314320
) = this(keypair._1, keypair._2, alg, Nil)
315321
}
322+
316323
object AttestationSigner {
317324
def ca(
318325
alg: COSEAlgorithmIdentifier,

0 commit comments

Comments
 (0)