
SignatureVerifier |
ptolemy.actor.lib.security.SignatureVerifier |
Verify the signature of the input data.
<p>In cryptography, digital signatures can be used to verify that the
data was not modified in transit. However, the data itself is passed
in clear text.
<p>The <i>provider</i> and <i>signatureAlgorithm</i> parameters should
be set to the values used to generate the publicKey. See <a href="../../../../ptolemy/actor/lib/security/PublicKeyReader.xml">ptolemy.actor.lib.security.PublicKeyReader</a> and <a href="../../../../ptolemy/actor/lib/security/SignatureActor.xml">ptolemy.actor.lib.security.SignatureActor</a> for possible values.
<p>The <i>provider</i> and <i>signatureAlgorithm</i> parameters should
be set to the same value as the corresponding parameter in the
SignatureSigner actor.
<p>This actor reads a KeyToken public key from the
<i>publicKey</i> port and then reads unsigned byte arrays from
the <i>signature</i> port and verifies the signature of
each unsigned byte array that appears on the <i>input</i> port.
If the signature is valid, then the unsigned byte array
data on the <i>input</i> port is passed to the <i>output</i> port.
If the signature is not valid, then an exception is thrown.
<p>This actor relies on the Java Cryptography Architecture (JCA) and Java
Cryptography Extension (JCE). See the
<a href="../../../../ptolemy/actor/lib/security/CryptographyActor.xml">ptolemy.actor.lib.security.CryptographyActor</a> documentation for
resources about JCA and JCE.
Author(s): Christopher Hylands Brooks, Contributor: Rakesh Reddy
Version:$Id: SignatureVerifier.doc.html,v 1.1 2006/02/22 18:41:22 mangal Exp $
Pt.Proposed Rating:Yellow (cxh)
Pt.Accepted Rating:Red (cxh)
signature
The signature of the data. The type of this input port
is unsigned byte array.
publicKey
The public key that is used to verify the signature.
This port receives the public key to be used from the
The type of this input port is an KeyToken containing
a java.security.PublicKey.