|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This defines the plug-in interface to implement Digital Signature for Rosettanet messages.
Method Summary | |
byte[] |
createSignature(byte[] msgContent,
com.bea.b2b.protocol.messaging.Message msg)
Creates a detached Digital Signature. |
void |
init(java.lang.String initString)
Initializes the Digital Signature plug-in class implementation. |
void |
verifySender(byte[] signature,
com.bea.b2b.protocol.messaging.Message msg)
Verifies that the certificate of the signature matches the sender information in the message. |
void |
verifySignature(byte[] msgContent,
byte[] signature)
Verifies a detached Digital Signature against the message contents. |
Method Detail |
public void init(java.lang.String initString)
initString
- the initialization string for the plug-in class
implementation. The value for this is specified in the
enabler configuration file. The name of this optional element
is: signature-validator-class-init
.public byte[] createSignature(byte[] msgContent, com.bea.b2b.protocol.messaging.Message msg) throws com.bea.b2b.protocol.security.WLCDigitalSignatureException
msgContent
- the content of the message to signmsg
- the message objectpublic void verifySignature(byte[] msgContent, byte[] signature) throws com.bea.b2b.protocol.security.WLCDigitalSignatureException
msgContent
- the content of the signed messagesignature
- the detached Digital Signaturepublic void verifySender(byte[] signature, com.bea.b2b.protocol.messaging.Message msg) throws com.bea.b2b.protocol.security.WLCDigitalSignatureException
signature
- the detached digital signaturemsg
- Message object with the parsed message
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |