data | Document. Signed data that you want to verify. The data must be in one of the following formats. If multiple input parameters are supplied for data, the service throws an exception stating that only one parameter must be passed. | ||
Key | Description | ||
string | String. Optional. The signed string that you want to verify. | ||
stream | java.io.InputStream. Optional. The signed stream data that you want to verify. | ||
bytes | byte[ ]. Optional. The signed byte array that you want to verify. | ||
file | String. Optional. The absolute or relative path of the signed file that you want to verify. If the file is outside the Integration Server or Microservices Runtime installation directory, provide the absolute path. Otherwise, place the file in your Integration Server or Microservices Runtime working directory. The About page in Integration Server Administrator and Microservices Runtime Administrator displays the working directory. The watt.server.homeDir server configuration parameter also specifies the working directory. | ||
loadAs | String. Optional. The format in which the service returns the output. Set to: bytes to return the output as a byte array. This is the default. stream to return the output as a stream object. | ||
publicKey | Document. The signer's public key required to verify the signed data. Provide either publicKeyBytes or publicKeyRingFile and publicKeyAlias. If you provide both publicKeyBytes and publicKeyRingFile, the service throws an exception stating that only one parameter must be passed. | ||
Key | Description | ||
publicKeyBytes | byte[ ]. Optional. The public key file in bytes. Note: Public key files have a .asc extension. | ||
public​KeyRingFile | String. Optional. The absolute or relative path of the public keyring file. The public keyring file is a collection of public keys with a unique key ID. If the file is outside the Integration Server or Microservices Runtime installation directory, provide the absolute path. Otherwise, place the file in your Integration Server or Microservices Runtime working directory. The About page in Integration Server Administrator and Microservices Runtime Administrator displays the working directory. The watt.server.homeDir server configuration parameter also specifies the working directory. Note: Public keyring files have a .pkr extension. | ||
publicKeyAlias | String. Optional. The 64-bit (16 characters) key identifier of the signer's public key. Note: This parameter is required only when you use publicKeyRingFile. |
stream | java.io.OutputStream. Conditional. Verified data in the form of an output stream, when the stream input parameter is provided. | |
bytes | byte[ ]. Conditional. Verified data in bytes, when the bytes input parameter is provided. | |
verified | Boolean. Indicates whether the signature associated with the data is valid or not. A value of: true indicates that the signed data is verified. false indicates that the signed data is not verified. | |
status | String. Indicates whether the data is successfully verified or not. If successful, status is success. Otherwise, status contains failure along with an error message. |