2020import info .weboftrust .ldsignatures .crypto .adapter .JWSVerifierAdapter ;
2121import info .weboftrust .ldsignatures .crypto .impl .Ed25519_EdDSA_PrivateKeySigner ;
2222import info .weboftrust .ldsignatures .crypto .impl .Ed25519_EdDSA_PublicKeyVerifier ;
23- import info .weboftrust .ldsignatures .crypto .impl .P256K_ES256K_PrivateKeySigner ;
24- import info .weboftrust .ldsignatures .crypto .impl .P256K_ES256K_PublicKeyVerifier ;
2523import info .weboftrust .ldsignatures .crypto .impl .RSA_RS256_PrivateKeySigner ;
2624import info .weboftrust .ldsignatures .crypto .impl .RSA_RS256_PublicKeyVerifier ;
25+ import info .weboftrust .ldsignatures .crypto .impl .secp256k1_ES256K_PrivateKeySigner ;
26+ import info .weboftrust .ldsignatures .crypto .impl .secp256k1_ES256K_PublicKeyVerifier ;
2727
2828abstract class JwtObject <T > {
2929
@@ -98,7 +98,7 @@ public String sign_P256K_ES256K(ByteSigner signer) throws JOSEException {
9898
9999 public String sign_P256K_ES256K (ECKey privateKey ) throws JOSEException {
100100
101- return this .sign_P256K_ES256K (new P256K_ES256K_PrivateKeySigner (privateKey ));
101+ return this .sign_P256K_ES256K (new secp256k1_ES256K_PrivateKeySigner (privateKey ));
102102 }
103103
104104 public String sign_P256K_ES256K (com .nimbusds .jose .jwk .ECKey privateKey ) throws JOSEException {
@@ -152,7 +152,7 @@ public boolean verify_P256K_ES256K(ByteVerifier verifier) throws JOSEException {
152152
153153 public boolean verify_P256K_ES256K (ECKey publicKey ) throws JOSEException {
154154
155- return this .verify_P256K_ES256K (new P256K_ES256K_PublicKeyVerifier (publicKey ));
155+ return this .verify_P256K_ES256K (new secp256k1_ES256K_PublicKeyVerifier (publicKey ));
156156 }
157157
158158 public boolean verify_P256K_ES256K (com .nimbusds .jose .jwk .ECKey publicKey ) throws JOSEException {
@@ -163,15 +163,15 @@ public boolean verify_P256K_ES256K(com.nimbusds.jose.jwk.ECKey publicKey) throws
163163 /*
164164 * Helper class
165165 */
166-
166+
167167 private static class EscapedSlashWorkaroundJWSObject extends JWSObject {
168168
169169 public EscapedSlashWorkaroundJWSObject (final JWSHeader header , final JWTClaimsSet claimsSet ) {
170170
171171 super (header , new Payload (claimsSet .toJSONObject ().toJSONString ().replace ("\\ /" , "/" )));
172172 }
173173 }
174-
174+
175175 /*
176176 * Getters
177177 */
0 commit comments