B2B Integration 10.5 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Security Folder | Summary of Elements in this Folder | wm.tn.security:getDecryptionKeyAndCert
 
wm.tn.security:getDecryptionKeyAndCert
Retrieves the decryption private key and certificates of a document receiver.
Input Parameters
senderID
String (optional) The internal partner ID of the document sender.
If senderID is not specified (or if no specific alternative decryption certificate data is defined between the sender and the receiver), the service will retrieve the receiver’s default decryption private key and certificates.
receiverID
String The internal partner ID of the document receiver (the owner of the decryption certificates).
Output Parameters
senderID
String The internal partner ID of the document sender. If senderID is null but the output parameter recipientCert is not null, the service retrieves the receiver’s default decryption certificate.
receiverID
String The internal partner ID of the document receiver (the owner of the decryption certificates).
privKey
Object A byte array that represents the private key that is used to generate the decryption certificate.
recipientCert
Object A byte array that represents the decryption certificate (a java.security.cert.X509Certificate).
recipientCertChain
Object An array of byte arrays. Each byte array represents a java.security.cert.X509Certificate. The certificates are in node-to-root order. The first certificate in the array is a decryption certificate. Each subsequent certificate is the certificate that was used to sign the previous certificate in the array.
isDefault
String Whether the decryption certificate is the receiver’s default decryption certificate. Valid values are:
*true - The decryption certificate is the recipient’s default decryption certificate that the document receiver uses to decrypt all incoming documents if no alternative decryption certificate is defined between the receiver and the sender.
*false - The decryption certificate is not the recipient’s default decryption certificate.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.