File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/com/danubetech/keyformats Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44
55import org .bitcoinj .core .ECKey ;
66
7- import com .danubetech .keytypes .JWKKeyTypes ;
7+ import com .danubetech .keyformats . keytypes .KeyType_for_JWK ;
88import com .nimbusds .jose .JOSEException ;
99import com .nimbusds .jose .crypto .impl .RSAKeyUtils ;
1010import com .nimbusds .jose .jwk .Curve ;
@@ -16,7 +16,7 @@ public class JWK_to_PrivateKey {
1616
1717 public static Object JWK_to_anyPrivateKey (JWK jsonWebKey ) throws JOSEException {
1818
19- String keyType = JWKKeyTypes .keyType_for_JWK (jsonWebKey );
19+ String keyType = KeyType_for_JWK .keyType_for_JWK (jsonWebKey );
2020
2121 if (KeyType .RSA .getValue ().equals (keyType ))
2222 return JWK_to_RSAPrivateKey (jsonWebKey );
Original file line number Diff line number Diff line change 1- package com .danubetech .keytypes ;
1+ package com .danubetech .keyformats . keytypes ;
22
33import com .nimbusds .jose .jwk .ECKey ;
44import com .nimbusds .jose .jwk .JWK ;
55import com .nimbusds .jose .jwk .KeyType ;
66import com .nimbusds .jose .jwk .OctetKeyPair ;
77
8- public class JWKKeyTypes {
8+ public class KeyType_for_JWK {
99
1010 public static String keyType_for_JWK (JWK jsonWebKey ) {
1111
You can’t perform that action at this time.
0 commit comments