com.dstc.security.smime
Interface VerificationResult


public interface VerificationResult

An interface to represent the result of verifying an S/MIME signed message. More specifically, an instance of VerificationResult is returned upon calling verify() on a CMSSignature instance on which setMessage() has been called with a MimeMessage representing the signed message. From the returned object can be obtained the verified message itself, the CMS SignedData associated with the signed message, and any non-fatal Warnings (if any) generated during verification.

See Also:
SMIMESignature, SignedData, Warning

Method Summary
 SignedData getCMSSignedData()
          Returns the CMS SignedData for the signed message which can be queried for signer information, amongst other things.
 MimeMessage getMessage()
          Returns a MimeMessage representation of the verified message (ie.
 Warning[] getWarnings()
          Returns all the Warnings generated during verification.
 

Method Detail

getMessage

public MimeMessage getMessage()
Returns a MimeMessage representation of the verified message (ie. the message that was signed).

getCMSSignedData

public SignedData getCMSSignedData()
Returns the CMS SignedData for the signed message which can be queried for signer information, amongst other things.

getWarnings

public Warning[] getWarnings()
Returns all the Warnings generated during verification.