File tree Expand file tree Collapse file tree
sdk/src/main/java/io/opentdf/platform/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121import io .opentdf .platform .sdk .SDK .KasBadRequestException ;
2222
2323import okhttp3 .OkHttpClient ;
24+ import org .slf4j .Logger ;
25+ import org .slf4j .LoggerFactory ;
2426
2527import java .security .MessageDigest ;
2628import java .security .NoSuchAlgorithmException ;
@@ -49,6 +51,8 @@ class KASClient implements SDK.KAS {
4951 private String clientPublicKey ;
5052 private KASKeyCache kasKeyCache ;
5153
54+ private static final Logger log = LoggerFactory .getLogger (KASClient .class );
55+
5256 /***
5357 * A client that communicates with KAS
5458 *
@@ -69,7 +73,9 @@ class KASClient implements SDK.KAS {
6973
7074 @ Override
7175 public KASInfo getECPublicKey (Config .KASInfo kasInfo , NanoTDFType .ECCurve curve ) {
72- var req = PublicKeyRequest .newBuilder ().setAlgorithm (format ("ec:%s" , curve .toString ())).build ();
76+ log .debug ("retrieving public key with kasinfo = [{}]" , kasInfo );
77+
78+ var req = PublicKeyRequest .newBuilder ().setAlgorithm (format ("ec:%s" , curve .curveName )).build ();
7379 var r = getStub (kasInfo .URL ).publicKeyBlocking (req , Collections .emptyMap ()).execute ();
7480 PublicKeyResponse res ;
7581 try {
You can’t perform that action at this time.
0 commit comments