Use Case:
The application imports the PKCS 12 file (with certificate and private key) and saves it for later use.
Current state:
I managed to use SecImportExport.ImportPkcs12 to get SecIdentity and SecTrust objects. Unfortunately, Im failed to assign a SecIdentity and SecTrust object to SecRecord.
Code:
SecIdentity identityObject = ...; SecTrust trustObject = ...; SecRecord record = new SecRecord(SecKind.Identity); record.Account = "Identity"; record.ValueData = ?
source share