*/
public KeyReader(CompositeEntity container, String name)
throws IllegalActionException, NameDuplicationException {
super(container, name);
getPublicKey = new Parameter(this, "getPublicKey", new BooleanToken(
true));
getPublicKey.setTypeEquals(BaseType.BOOLEAN);
output = new TypedIOPort(this, "output", false, true);
output.setTypeEquals(KeyToken.KEY);
trigger = new TypedIOPort(this, "trigger", true, false);
// NOTE: It used to be that trigger was set to GENERAL, but this
// isn't really what we want. What we want is an undeclared type
// that can resolve to anything.
// trigger.setTypeEquals(BaseType.GENERAL);
trigger.setMultiport(true);
signatureAlgorithm = new StringParameter(this, "signatureAlgorithm");
signatureAlgorithm
.setExpression("Unknown, will be set after first run");
signatureAlgorithm.setVisibility(Settable.NOT_EDITABLE);
signatureAlgorithm.setPersistent(false);
verifyCertificate = new Parameter(this, "verifyCertificate",
new BooleanToken(true));
verifyCertificate.setTypeEquals(BaseType.BOOLEAN);
}