I'm creating an app in Kotlin (Java solutions also accepted, you know how it is), that is supposed to gather extensive details about wifi networks nearby. I would like to check, wheter or not wifi network, that I'm looking into, has 802.1X authentication enabled (user-password authenticated by a RADIUS server).
First thing, that comes to my mind, is to basically try to connect to every WiFi network programmatically, and check, what type of authentication it requires. This thread extensively describes this process: https://stackoverflow.com/questions/8818290/how-do-i-connect-to-a-specific-wi-fi-network-in-android-programmatically , although i didn't found any mention of dot1X type of authentication. Apart from potentially not being sufficient, this "solution" would be a lot of work for value of one field.
I simply wonder, is there somehow an useful API with a nifty method, that could help me gather this data about wifi networks, that I'm scanning.
EDIT: I noticed, that SupplicantState class from android.net.wifi library mentions dot1X standard. It needs to be investigated futher.