|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.DefaultMessageSignatureImpl
public class DefaultMessageSignatureImpl
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.
| Constructor Summary | |
|---|---|
DefaultMessageSignatureImpl(org.bouncycastle.cms.SignerInformation signer,
boolean useOrgCert,
X509Certificate cert)
Constructs a message signature from the singer info and the certificate used to sign the message. |
|
| 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. |
org.bouncycastle.cms.SignerInformation |
getSigner()
Gets the signer information for this specific signature. |
X509Certificate |
getSignerCert()
Get the certificate used to sign the message for this specific signer. |
boolean |
isSignatureValid()
Indicate if the signature has been validated for authenticity and consistency. |
boolean |
isThumbprintVerified()
Indicates if the signature certificate has been verified against a senders certificate. |
boolean |
isUseOrgCertificate()
Indicate if the certificate used to sign the message for this signer is an org level or individual level cert. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessageSignatureImpl(org.bouncycastle.cms.SignerInformation signer,
boolean useOrgCert,
X509Certificate cert)
signer - Information about the individual signature such as the signers id and algorithms used to sign.useOrgCert - Indicates if the certificate used is a org level or individual level certificatecert - The public certificate used to sign the message for this signer.| Method Detail |
|---|
public X509Certificate getSignerCert()
public boolean isSignatureValid()
public org.bouncycastle.cms.SignerInformation getSigner()
public boolean isUseOrgCertificate()
public boolean isThumbprintVerified()
public boolean checkSignature()
checkSignature in interface MessageSignaturepublic boolean checkThumbprint(NHINDAddress messageSender)
checkThumbprint in interface MessageSignaturemessageSender - The senders address. The address should contain the senders public certificate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||