Added in API level 31

Builder


class Builder

This class is used to incrementally construct a IkeSaProposal. IkeSaProposal instances are immutable once built.

Summary

Public constructors

Public methods
IkeSaProposal.Builder
addDhGroup(dhGroup: Int)

Adds a Diffie-Hellman Group to the SA proposal being built.

IkeSaProposal.Builder
addEncryptionAlgorithm(algorithm: Int, keyLength: Int)

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

IkeSaProposal.Builder

Adds an integrity algorithm to the SA proposal being built.

IkeSaProposal.Builder

Adds a pseudorandom function to the SA proposal being built.

IkeSaProposal

Validates and builds the IkeSaProposal.

Public constructors

Builder

Added in API level 31
Builder()

Public methods

addEncryptionAlgorithm

Added in API level 31
fun addEncryptionAlgorithm(
    algorithm: Int,
    keyLength: Int
): IkeSaProposal.Builder

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

Return
IkeSaProposal.Builder Builder of IkeSaProposal. This value cannot be null.

build

Added in API level 31
fun build(): IkeSaProposal

Validates and builds the IkeSaProposal.

Return
IkeSaProposal the validated IkeSaProposal. This value cannot be null.