Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Security Folder | Summary of Elements in this Folder | wm.tn.security:getSigningKeyAndChain
 
wm.tn.security:getSigningKeyAndChain
Retrieves the signing private key and certificates of the document receiver.
Input Parameters
senderID
String The internal partner ID of the document sender.
receiverID
String (optional) The internal partner ID of the document receiver.
If receiverID is not specified (or if no specific alternative signing certificate data is defined between the sender and the receiver), the service retrieves the sender’s default signing private key and certificates.
Output Parameters
senderID
String The internal partner ID of the document sender.
receiverID
String The internal partner ID of the document receiver. If receiverID is null, the key and certificates are the sender’s default key and certificates.
key
Object A byte array that represents the private key used to generate the signing certificate.
certChain
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 the sign/decrypt/SSL client certificate. Each subsequent certificate is the certificate that was used to sign the previous certificate in the array.
cert
Object A byte array that represents the signing certificate (a java.security.cert.X509Certificate).
isDefault
String Whether the signing certificates are the sender’s default signing certificates. Valid values are:
*true - The certificate is the sender’s default certificate. The document receiver uses this to decrypt all outgoing documents if no alternative signing certificate is defined between the receiver and the sender.
*false - The certificate is not the sender’s default certificate.