Compartilhar via


IpSecAlgorithm Constructors

Definition

Overloads

IpSecAlgorithm(String, Byte[])

Creates an IpSecAlgorithm of one of the supported types.

IpSecAlgorithm(String, Byte[], Int32)

Creates an IpSecAlgorithm of one of the supported types.

IpSecAlgorithm(String, Byte[])

Creates an IpSecAlgorithm of one of the supported types.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[B)V", "", ApiSince=28)]
public IpSecAlgorithm (string algorithm, byte[] key);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[B)V", "", ApiSince=28)>]
new Android.Net.IpSecAlgorithm : string * byte[] -> Android.Net.IpSecAlgorithm

Parameters

algorithm
String

name of the algorithm.

key
Byte[]

key padded to a multiple of 8 bits.

Attributes

Remarks

Creates an IpSecAlgorithm of one of the supported types. Supported algorithm names are defined as constants in this class.

For algorithms that produce an integrity check value, the truncation length is a required parameter. See #IpSecAlgorithm(String algorithm, byte[] key, int truncLenBits)

Java documentation for android.net.IpSecAlgorithm.IpSecAlgorithm(java.lang.String, byte[]).

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

IpSecAlgorithm(String, Byte[], Int32)

Creates an IpSecAlgorithm of one of the supported types.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[BI)V", "", ApiSince=28)]
public IpSecAlgorithm (string algorithm, byte[] key, int truncLenBits);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[BI)V", "", ApiSince=28)>]
new Android.Net.IpSecAlgorithm : string * byte[] * int -> Android.Net.IpSecAlgorithm

Parameters

algorithm
String

name of the algorithm.

key
Byte[]

key padded to a multiple of 8 bits.

truncLenBits
Int32

number of bits of output hash to use.

Attributes

Remarks

Creates an IpSecAlgorithm of one of the supported types. Supported algorithm names are defined as constants in this class.

This constructor only supports algorithms that use a truncation length. i.e. Authentication and Authenticated Encryption algorithms.

Java documentation for android.net.IpSecAlgorithm.IpSecAlgorithm(java.lang.String, byte[], int).

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