org.nhindirect.stagent
Interface MessageSignature

All Known Implementing Classes:
DefaultMessageSignatureImpl

public interface MessageSignature

Contains information specific to a discrete signer of a message. Includes the singer information and the certificate used to sign the message (optimally extracted from the signature). This is a subset of the CMS signed data.

Author:
Greg Meyer, Umesh Madan

Method Summary
 boolean checkSignature()
          Verifies if the signature is valid using the signature certificate.
 boolean checkThumbprint(NHINDAddress messageSender)
          Validates if the senders certificate matches the signature certificate using certificate thumb printing.
 

Method Detail

checkSignature

boolean checkSignature()
Verifies if the signature is valid using the signature certificate.

Returns:
True if the signature is valid. False otherwise.

checkThumbprint

boolean checkThumbprint(NHINDAddress messageSender)
Validates if the senders certificate matches the signature certificate using certificate thumb printing.

Parameters:
messageSender - The senders address. The address should contain the senders public certificate.
Returns:
True if the thumb print of the signature matches the senders certificate thumb print. False otherwise.


Copyright © 2010-2015 NHIN Direct. All Rights Reserved.