Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | Security Folder | Summary of Elements in this Folder | pub.security.keystore.pkcs7:sign
 
pub.security.keystore.pkcs7:sign
WmPublic. Creates a PKCS7 signed Data object.
Input Parameters
signerInfo
Document List Information about a single signer of the signed data object. Each signerInfo requires either a certificate chain and a private key or a key alias that references them.
Key
Description
keyStoreAlias
String Name of the keystore alias.
keyAlias
String Alias of the private key.
hashAlgorithm
String The algorithm to use when computing the digest of the provided data. Specify:
*MD5 (the default)
*SHA-1
*SHA-256
*SHA-384
*SHA-512
data
byte[ ] Optional. Data in the form of a byte array to be digitally signed.
Note:
If both data and dataAsStream are provided, dataAsStream takes precedence.
dataAsStream
java.io.InputStream Optional. Data in the form of an input stream to be digitally signed.
Note:
If both data and dataAsStream are provided, dataAsStream takes precedence.
detachedSignature
String Flag specifying whether to generate a detached signature. A detached signature does not include the data that was signed. Set to:
*true to generate a detached signature.
*false to generate an implicit signature (one that includes the signed data). This is the default.
Output Parameters
signature
byte[ ] Conditional. Signature generated in the form of a byte array from the supplied data. This is a DER-encoded representation of the SignedData object as specified in PKCS#7. signature is returned when the input parameter data is provided.
signatureAsStream
java.io.OutputStream Conditional. Signature generated in the form of an output stream from the supplied data. signatureAsStream is returned when the input parameter dataAsStream is provided.
Usage Notes
This service supersedes pub.security.pkcs7:sign, which is deprecated.
For information about using aliases for keystores, truststores, and private keys, see the section Keystores and Truststores in the webMethods Integration Server Administrator’s Guide .