File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
main/java/org/eclipse/biscuit/crypto
test/java/org/eclipse/biscuit/crypto Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ final class SECP256R1KeyPair extends KeyPair {
6969 }
7070
7171 static Signature getSignature () throws NoSuchAlgorithmException {
72- return Signature .getInstance ("SHA256withECDSA" , new BouncyCastleProvider ());
72+ return Signature .getInstance (
73+ "SHA256withECDSA" , Security .getProvider (BouncyCastleProvider .PROVIDER_NAME ));
7374 }
7475
7576 @ Override
Original file line number Diff line number Diff line change 1414import java .security .InvalidKeyException ;
1515import java .security .NoSuchAlgorithmException ;
1616import java .security .SecureRandom ;
17- import java .security .Security ;
1817import java .security .SignatureException ;
1918import org .eclipse .biscuit .error .Error ;
2019import org .eclipse .biscuit .token .Biscuit ;
21- import org .bouncycastle .jce .provider .BouncyCastleProvider ;
2220import org .junit .jupiter .api .Test ;
2321
2422/**
2523 * @serial exclude
2624 */
2725public class SignatureTest {
28-
29- static {
30- Security .addProvider (new BouncyCastleProvider ());
31- }
32-
3326 @ Test
3427 public void testSerialize () {
3528 prTestSerialize (Schema .PublicKey .Algorithm .Ed25519 , 32 );
You can’t perform that action at this time.
0 commit comments