AlgorithmParameters.getEncoded

Returns the parameters encoded in the specified scheme. If {@code format} is null, the primary encoding format for parameters is used. The primary encoding format is ASN.1, if an ASN.1 specification for these parameters exists.

@param format the name of the encoding format.

@return the parameters encoded using the specified encoding scheme.

@exception IOException on encoding errors, or if this parameter object has not been initialized.

  1. byte[] getEncoded()
  2. byte[] getEncoded(string format)
    class AlgorithmParameters
    final
    byte[]
    getEncoded
    (
    string format
    )

Meta