Skip to content

Commit ad8760f

Browse files
committed
coverage
1 parent 4e87cf1 commit ad8760f

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

sdk/src/main/java/io/opentdf/platform/sdk/TokenSource.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,11 @@ public AuthHeaders getAuthHeaders(URL url, String method) {
9090

9191
// package-private for testing
9292
static String getDPoPProof(URL url, String method, DPoPProofFactory dpopFactory, AccessToken t) {
93-
URI onlyPath;
94-
try {
95-
onlyPath = new URI(url.getPath());
96-
} catch (URISyntaxException e) {
97-
throw new SDKException("cannot create URL containing only path", e);
98-
}
9993
try {
94+
URI onlyPath = new URI(url.getPath());
10095
SignedJWT proof = dpopFactory.createDPoPJWT(method, onlyPath, t);
10196
return proof.serialize();
102-
} catch (JOSEException e) {
97+
} catch (JOSEException | URISyntaxException e) {
10398
throw new SDKException("Error creating DPoP proof", e);
10499
}
105100
}

0 commit comments

Comments
 (0)