Class Pkcs12ImportSpec

Object
Pkcs12ImportSpec

public class Pkcs12ImportSpec extends Object

DTO used to import a private key (and its certificate chain) packed in a PKCS#12 / .p12 container that is supplied as a Base64 string.

Notes

  • The file must be encoded with the binary form of PKCS#12, not PEM.
  • An empty password is represented by the empty string "".
  • The SDK automatically wipes the Base64 string from memory once the HTTP call completes.

Example


 Pkcs12ImportSpec spec = new Pkcs12ImportSpec()
         .setKid("bank-tls-key-2025")
         .setP12FileBase64(base64Data)
         .setP12Password("S3cret!");

 sdk.importPrivateKeyPkcs12(spec);
 
Since:
1.0
Author:
Javier Galindo