Builder
class Builder
kotlin.Any | |
↳ | android.net.eap.EapSessionConfig.EapAkaOption.Builder |
This class can be used to incrementally construct an EapAkaOption
.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
EapSessionConfig.EapAkaOption |
build() Constructs and returns an EapAkaOption with the configurations applied to this Builder. |
EapSessionConfig.EapAkaOption.Builder |
setReauthId(reauthId: ByteArray) Set fast re-authentication ID |
Public constructors
Public methods
build
fun build(): EapSessionConfig.EapAkaOption
Constructs and returns an EapAkaOption with the configurations applied to this Builder.
Return | |
---|---|
EapSessionConfig.EapAkaOption |
the EapAkaOption constructed by this Builder. This value cannot be null . |
setReauthId
fun setReauthId(reauthId: ByteArray): EapSessionConfig.EapAkaOption.Builder
Set fast re-authentication ID
If keys are found matching the combination of reauthId and permanent ID, re-authentication will be attempted.
Permanent ID MUST be set in setEapIdentity
Upon session establishment, new re-authentication IDs will be listed in the EapAkaInfo returned as part of IkeSessionCallback#onOpened().
Reauthentication is generally considered less secure, as it does not prove the existence of the full credentials, and should be used only when a strong correlation can be provided to the full authentication (eg shared keys from previous authentication runs)
Parameters | |
---|---|
reauthId |
ByteArray: re-authentication ID encoded with UTF-8 This value cannot be null . |
Return | |
---|---|
EapSessionConfig.EapAkaOption.Builder |
Builder this, to facilitate chaining. This value cannot be null . |
See Also