Język

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

Parameters

algorithm
Int32

The encryption algorithm identifier to add. Use a value from SupportedEncryptionAlgorithms for the current device. Support for IKE encryption does not imply support for Child security associations.

keyLength
Int32

key length of algorithm. For algorithms that have fixed key length (e.g. 3DES) only SaProposal.KEY_LEN_UNUSED is allowed.

Returns

Builder of ChildSaProposal. 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.ChildSaProposal.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