Language

IkeSaProposal.Builder.AddEncryptionAlgorithm(Int32, Int32) Method

Definition

Adds an encryption algorithm with a specific key length to the SA proposal being built.

[Android.Runtime.Register("addEncryptionAlgorithm", "(II)Landroid/net/ipsec/ike/IkeSaProposal$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.IkeSaProposal.Builder AddEncryptionAlgorithm(int algorithm, int keyLength);
[<Android.Runtime.Register("addEncryptionAlgorithm", "(II)Landroid/net/ipsec/ike/IkeSaProposal$Builder;", "", ApiSince=31)>]
member this.AddEncryptionAlgorithm : int * int -> Android.Net.IpSec.Ike.IkeSaProposal.Builder

Parameters

algorithm
Int32

The encryption algorithm to add. Convert a value of SaProposalEncryptionAlgorithm to Int32. Use SupportedEncryptionAlgorithms to check available algorithms.

keyLength
Int32

The key length of the algorithm. For algorithms with a fixed key length, such as 3DES, use Unused converted to Int32.

Returns

Builder of IkeSaProposal. This value cannot be null.

Attributes

Remarks

Adds an encryption algorithm with a specific key length to the SA proposal being built.

Android reference for android.net.ipsec.ike.IkeSaProposal.Builder.addEncryptionAlgorithm.

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