We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137dccf commit add3c80Copy full SHA for add3c80
1 file changed
domain/src/main/java/org/cryptomator/domain/usecases/DoLicenseCheck.java
@@ -6,6 +6,7 @@
6
import com.auth0.jwt.exceptions.SignatureVerificationException;
7
import com.auth0.jwt.interfaces.DecodedJWT;
8
import com.auth0.jwt.interfaces.JWTVerifier;
9
+import com.google.common.base.CharMatcher;
10
import com.google.common.io.BaseEncoding;
11
12
import org.cryptomator.domain.exception.BackendException;
@@ -45,6 +46,7 @@ public class DoLicenseCheck {
45
46
47
public LicenseCheck execute() throws BackendException {
48
license = useLicenseOrRetrieveFromDb(license);
49
+ license = CharMatcher.whitespace().removeFrom(license);
50
try {
51
Algorithm algorithm = Algorithm.ECDSA512(getPublicKey(ANDROID_PUB_KEY), null);
52
JWTVerifier verifier = JWT.require(algorithm).build();
0 commit comments