Skip to content

Commit 77ee463

Browse files
committed
Drop dependency on COSE-Java
1 parent 3b672e2 commit 77ee463

File tree

17 files changed

+26
-39
lines changed

17 files changed

+26
-39
lines changed

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
== Version 2.5.1 (unreleased) ==
2+
3+
Changes:
4+
5+
* Dropped dependency on COSE-Java.
6+
7+
18
== Version 2.5.0 ==
29

310
`webauthn-server-core`:

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ dependencies {
3434
constraints {
3535
api(constraintLibs.bundles.jackson)
3636
api(constraintLibs.cbor)
37-
api(constraintLibs.cose)
3837
api(constraintLibs.guava)
3938
api(constraintLibs.httpclient5)
4039
api(constraintLibs.slf4j)

settings.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ dependencyResolutionManagement {
1515
versionCatalogs {
1616
create("constraintLibs") {
1717
library("cbor", "com.upokecenter:cbor:[4.5.1,5)")
18-
library("cose", "com.augustcellars.cose:cose-java:[1.0.0,2)")
1918
library("guava", "com.google.guava:guava:[24.1.1,33)")
2019
library("httpclient5", "org.apache.httpcomponents.client5:httpclient5:[5.0.0,6)")
2120
library("slf4j", "org.slf4j:slf4j-api:[1.7.25,3)")

test-dependent-projects/java-dep-webauthn-server-core-and-bouncycastle/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ dependencies {
1212
testImplementation("junit:junit:4.12")
1313
testImplementation("org.mockito:mockito-core:[2.27.0,3)")
1414

15-
// Runtime-only internal dependency of webauthn-server-core
16-
testImplementation("com.augustcellars.cose:cose-java:[1.0.0,2)")
17-
1815
// Transitive dependencies from coreTestOutput
1916
testImplementation("org.scala-lang:scala-library:[2.13.1,3)")
2017
}

test-dependent-projects/java-dep-webauthn-server-core-and-bouncycastle/src/test/java/com/yubico/webauthn/BouncyCastleProviderPresenceTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import static org.junit.Assert.assertTrue;
44

5-
import COSE.CoseException;
65
import com.yubico.webauthn.data.AttestationObject;
76
import com.yubico.webauthn.data.RelyingPartyIdentity;
87
import java.io.IOException;
@@ -72,7 +71,7 @@ public void bouncyCastleProviderIsNotLoadedAfterInstantiatingRelyingParty() {
7271

7372
@Test
7473
public void bouncyCastleProviderIsNotLoadedAfterAttemptingToLoadEddsaKey()
75-
throws IOException, CoseException, InvalidKeySpecException {
74+
throws IOException, InvalidKeySpecException {
7675
try {
7776
WebAuthnCodecs.importCosePublicKey(
7877
new AttestationObject(
@@ -92,7 +91,7 @@ public void bouncyCastleProviderIsNotLoadedAfterAttemptingToLoadEddsaKey()
9291

9392
@Test(expected = NoSuchAlgorithmException.class)
9493
public void doesNotFallBackToBouncyCastleAutomatically()
95-
throws IOException, CoseException, InvalidKeySpecException, NoSuchAlgorithmException {
94+
throws IOException, InvalidKeySpecException, NoSuchAlgorithmException {
9695
for (Provider prov : Security.getProviders()) {
9796
Security.removeProvider(prov.getName());
9897
}

test-dependent-projects/java-dep-webauthn-server-core-and-bouncycastle/src/test/java/com/yubico/webauthn/CryptoAlgorithmsTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static org.junit.Assert.assertEquals;
44
import static org.junit.Assert.assertTrue;
55

6-
import COSE.CoseException;
76
import com.yubico.webauthn.data.AttestationObject;
87
import com.yubico.webauthn.data.RelyingPartyIdentity;
98
import java.io.IOException;
@@ -47,7 +46,7 @@ public void tearDown() {
4746

4847
@Test
4948
public void importRsa()
50-
throws IOException, CoseException, NoSuchAlgorithmException, InvalidKeySpecException {
49+
throws IOException, NoSuchAlgorithmException, InvalidKeySpecException {
5150
PublicKey key =
5251
WebAuthnCodecs.importCosePublicKey(
5352
new AttestationObject(
@@ -61,7 +60,7 @@ public void importRsa()
6160

6261
@Test
6362
public void importEcdsa()
64-
throws IOException, CoseException, NoSuchAlgorithmException, InvalidKeySpecException {
63+
throws IOException, NoSuchAlgorithmException, InvalidKeySpecException {
6564
PublicKey key =
6665
WebAuthnCodecs.importCosePublicKey(
6766
new AttestationObject(
@@ -75,7 +74,7 @@ public void importEcdsa()
7574

7675
@Test
7776
public void importEddsa()
78-
throws IOException, CoseException, NoSuchAlgorithmException, InvalidKeySpecException {
77+
throws IOException, NoSuchAlgorithmException, InvalidKeySpecException {
7978
PublicKey key =
8079
WebAuthnCodecs.importCosePublicKey(
8180
new AttestationObject(

test-dependent-projects/java-dep-webauthn-server-core/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ dependencies {
1111
testImplementation("junit:junit:4.12")
1212
testImplementation("org.mockito:mockito-core:[2.27.0,3)")
1313

14-
// Runtime-only internal dependency of webauthn-server-core
15-
testImplementation("com.augustcellars.cose:cose-java:[1.0.0,2)")
16-
1714
// Transitive dependencies from coreTestOutput
1815
testImplementation("org.scala-lang:scala-library:[2.13.1,3)")
1916
}

test-dependent-projects/java-dep-webauthn-server-core/src/test/java/com/yubico/webauthn/BouncyCastleProviderPresenceTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import static org.junit.Assert.assertTrue;
44

5-
import COSE.CoseException;
65
import com.yubico.webauthn.data.AttestationObject;
76
import com.yubico.webauthn.data.RelyingPartyIdentity;
87
import java.io.IOException;
@@ -51,7 +50,7 @@ public void bouncyCastleProviderIsNotLoadedAfterInstantiatingRelyingParty() {
5150

5251
@Test
5352
public void bouncyCastleProviderIsNotLoadedAfterAttemptingToLoadEddsaKey()
54-
throws IOException, CoseException, InvalidKeySpecException {
53+
throws IOException, InvalidKeySpecException {
5554
try {
5655
WebAuthnCodecs.importCosePublicKey(
5756
new AttestationObject(

test-dependent-projects/java-dep-webauthn-server-core/src/test/java/com/yubico/webauthn/CryptoAlgorithmsTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import static org.junit.Assert.assertEquals;
44

5-
import COSE.CoseException;
65
import com.yubico.webauthn.data.AttestationObject;
76
import com.yubico.webauthn.data.RelyingPartyIdentity;
87
import java.io.IOException;
@@ -45,7 +44,7 @@ public void tearDown() {
4544

4645
@Test
4746
public void importRsa()
48-
throws IOException, CoseException, NoSuchAlgorithmException, InvalidKeySpecException {
47+
throws IOException, NoSuchAlgorithmException, InvalidKeySpecException {
4948
PublicKey key =
5049
WebAuthnCodecs.importCosePublicKey(
5150
new AttestationObject(
@@ -59,7 +58,7 @@ public void importRsa()
5958

6059
@Test
6160
public void importEcdsa()
62-
throws IOException, CoseException, NoSuchAlgorithmException, InvalidKeySpecException {
61+
throws IOException, NoSuchAlgorithmException, InvalidKeySpecException {
6362
PublicKey key =
6463
WebAuthnCodecs.importCosePublicKey(
6564
new AttestationObject(

webauthn-server-core/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dependencies {
1616
api(platform(rootProject))
1717

1818
implementation(project(":yubico-util"))
19-
implementation("com.augustcellars.cose:cose-java")
2019
implementation("com.fasterxml.jackson.core:jackson-databind")
2120
implementation("com.google.guava:guava")
2221
implementation("com.upokecenter:cbor")

0 commit comments

Comments
 (0)