Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Commit f1f1ab1

Browse files
committed
throws specific errors
1 parent 8de926a commit f1f1ab1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/biscuitsec/biscuit/token/KmsSignerExampleTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.biscuitsec.biscuit.crypto.KeyPair;
66
import org.biscuitsec.biscuit.crypto.PublicKey;
77
import org.biscuitsec.biscuit.crypto.Signer;
8+
import org.biscuitsec.biscuit.error.Error;
89
import org.bouncycastle.asn1.ASN1InputStream;
910
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
1011
import org.bouncycastle.asn1.x9.ECNamedCurveTable;
@@ -46,7 +47,7 @@ public static void teardown() {
4647
}
4748

4849
// @Test
49-
public void createWithRemoteSigner() throws Exception {
50+
public void createWithRemoteSigner() throws Error.Language, Error.Parser {
5051
Function<String, byte[]> getPublicKeyBytes = (keyId) -> {
5152
try (var kmsClient = KmsClient.create()) {
5253
var publicKeyResponse = kmsClient.getPublicKey(b -> b.keyId(keyId).build());

0 commit comments

Comments
 (0)