共用方式為


AlgorithmParameters.GetEncoded Method

Definition

Overloads

GetEncoded()

Returns the parameters in their primary encoding format.

GetEncoded(String)

Returns the parameters encoded in the specified scheme.

GetEncoded()

Returns the parameters in their primary encoding format.

[Android.Runtime.Register("getEncoded", "()[B", "")]
public byte[]? GetEncoded ();
[<Android.Runtime.Register("getEncoded", "()[B", "")>]
member this.GetEncoded : unit -> byte[]

Returns

Byte[]

the parameters encoded using their primary encoding format.

Attributes

Exceptions

if this AlgorithmParameters has already been initialized, or if this parameters could not be encoded.

Remarks

Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Java documentation for java.security.AlgorithmParameters.getEncoded().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetEncoded(String)

Returns the parameters encoded in the specified scheme.

[Android.Runtime.Register("getEncoded", "(Ljava/lang/String;)[B", "")]
public byte[]? GetEncoded (string? format);
[<Android.Runtime.Register("getEncoded", "(Ljava/lang/String;)[B", "")>]
member this.GetEncoded : string -> byte[]

Parameters

format
String

the name of the encoding format.

Returns

Byte[]

the parameters encoded using the specified encoding scheme.

Attributes

Exceptions

if this AlgorithmParameters has already been initialized, or if this parameters could not be encoded.

Remarks

Returns the parameters encoded in the specified scheme. If 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.

Java documentation for java.security.AlgorithmParameters.getEncoded(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to