KeyReader
ptolemy.actor.lib.security.KeyReader

Read in a keystore from a FileParameter and output a Key. <p>Keystores are ways to manage keys and certificates. See the <a href="../../../../ptolemy/actor/lib/security/KeyStoreActor.xml">ptolemy.actor.lib.security.KeyStoreActor</a> documentation for more information about keystores. <p>This class has many parameters, derived classes usually set some of the parameters to reasonable defaults and then hide them by setting the visibility to EXPERT.

Author(s): Christopher Hylands Brooks
Version:$Id: KeyReader.doc.html,v 1.1 2006/02/22 18:41:22 mangal Exp $
Pt.Proposed Rating:Yellow (cxh)
Pt.Accepted Rating:Red (cxh)


output
The output port. This port contains an KeyToken that contains a java.security.Key.
trigger
The trigger port. The type of this port is undeclared, meaning that it will resolve to any data type.


getPublicKey
True if we should get the public key. False if we should get the private key. The default value is true. Getting the private key requires using the keyPassword.
signatureAlgorithm
The name of the signature algorithm used to generate the key. This StringParameter is not settable by the user, it is set after initialize() is called and the certificate has been obtained from the KeyStore.
verifyCertificate
True if the certificate associated with a key should be verified. False if the certificate (if any) need not be verified. <br>Public Keys must be associated with a certificate, so if <i>getPublicKey</i> is true, then this Parameter should be true as well. <br>Private keys are usually associated with a certificate, so verifying the certificate is a good idea. <br>Secret keys do not usually have a certificate, so if the key is a secret key, then usually <i>verifyCertificate</i> is set to false.