Use Lombok to create a record-like struct

This commit is contained in:
games647 committed 2022-07-22 13:26:39 +02:00
1 parent dd2fca2ea1
commit 9fdbdeaf9a
3 files changed
+10 -56

No files matched your search

@@ -77,7 +77,7 @@ public class ResourceLoader {
RSAPublicKey publicKey = parsePublicKey(key);
byte[] signature = Base64.getDecoder().decode(object.getAsJsonPrimitive("signature").getAsString());
return new ClientPublicKey(expires, publicKey, signature);
return ClientPublicKey.of(expires, publicKey, signature);
}
private static RSAPublicKey parsePublicKey(String keySpec)