File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1212 requires com .google .common ;
1313 requires org .slf4j ;
1414 requires dagger ;
15- requires com .auth0 .jwt ;
15+ requires transitive com .auth0 .jwt ;
1616
1717 // filename-based module required by dagger
1818 // we will probably need to live with this for a while:
Original file line number Diff line number Diff line change 66import com .auth0 .jwt .exceptions .JWTDecodeException ;
77import com .auth0 .jwt .exceptions .JWTVerificationException ;
88import com .auth0 .jwt .exceptions .SignatureVerificationException ;
9+ import com .auth0 .jwt .interfaces .Claim ;
910import com .auth0 .jwt .interfaces .DecodedJWT ;
1011import org .cryptomator .cryptofs .common .Constants ;
1112import org .cryptomator .cryptolib .api .CryptorProvider ;
@@ -140,18 +141,22 @@ public URI getKeyId() {
140141 return URI .create (unverifiedConfig .getKeyId ());
141142 }
142143
144+ public Claim get (String key ) {
145+ return unverifiedConfig .getClaim (key );
146+ }
147+
143148 /**
144149 * @return The unverified vault version (signature not verified)
145150 */
146151 public int allegedVaultVersion () {
147- return unverifiedConfig . getClaim (JSON_KEY_VAULTVERSION ).asInt ();
152+ return get (JSON_KEY_VAULTVERSION ).asInt ();
148153 }
149154
150155 /**
151156 * @return The unverified shortening threshold (signature not verified)
152157 */
153158 public int allegedShorteningThreshold () {
154- return unverifiedConfig . getClaim (JSON_KEY_SHORTENING_THRESHOLD ).asInt ();
159+ return get (JSON_KEY_SHORTENING_THRESHOLD ).asInt ();
155160 }
156161
157162 /**
You can’t perform that action at this time.
0 commit comments