OutputFile Property

The file to which output data should be written.

Syntax

public String getOutputFile();
public void setOutputFile(String outputFile);

Default Value

""

Remarks

This property specifies the file to which data output from a successful cryptographic operation should be written.

Setting this property to a non-empty value will discard any stream set using the SetOutputStream method. Similarly, passing a non-null value to the aforementioned method will clear this property.

Note: For the Verify operation, the specified file functions as a secondary input file instead (along with InputFile); refer to the Verify method for more information.

Input Sources & Output Destinations

The class automatically determines the source and destination of the input and output based on which properties are set.

The order in which the input properties are checked is as follows:

  1. An input stream supplied via the SetInputStream method
  2. The InputFile property
  3. The InputData property

The first valid input source found is used. The order in which the output properties are considered is as follows:

  1. An output stream supplied via the SetOutputStream method
  2. The OutputFile property
  3. The OutputData property

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Keys 2020 Java Edition - Version 20.0 [Build 8157]