WifiResultParser

Parses a WIFI configuration string. Strings will be of the form:

WIFI:T:[network type];S:[network SSID];P:[network password];H:[hidden?];;

For WPA2 enterprise (EAP), strings will be of the form:

WIFI:T:WPA2-EAP;S:[network SSID];H:[hidden?];E:[EAP method];PH2:[Phase 2 method];A:[anonymous identity];I:[username];P:[password];;

"EAP method" can e.g. be "TTLS" or "PWD" and "Phase 2 method" can e.g. be "MSCHAPV2".

The fields can appear in any order. Only "S:" is required.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun parse(result: Result): WifiParsedResult?

Attempts to parse the raw Result's contents as a particular type of information (email, URL, etc.) and return a ParsedResult encapsulating the result of parsing.