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:getVerifyingChain
 
wm.tn.security:getVerifyingChain
Retrieves the verifying certificate and certificate chain of a document sender.
Input Parameters
senderID
String The internal partner ID of the document sender (the owner of the verifying certificate).
receiverID
String (optional) The internal partner ID of the document sender.
If receiverID is not specified (or if no specific alternative verifying certificate is defined between the sender and the receiver), the service will retrieve the sender’s default verifying certificates.
Output Parameters
senderID
String The internal partner ID of the document sender.
receiverID
String The internal partner ID of the document sender. If receiverID is null, that indicates that the certificates that were retrieved are the sender’s default verifying certificates.
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 verifying 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 verifying certificate is the sender’s default verifying certificate. Valid values for the verifying certificate:
*true - This is the sender’s default signing certificate that the sender uses to sign all outgoing documents if no alternative signing certificate exists between the sender and receiver.
*false - This is not the sender’s default signing certificate.