WifiEncryption
com.rvi.domain.WifiEncryption · Enum · SocialCard 1.0.3
Selects the encryption associated with a Wi-Fi record.
When to use it
Section titled “When to use it”Use NONE with OPEN or AES with WPA2_PERSONAL. This enum models those two supported combinations. Set the field explicitly when mapping settings from a UI.
Java example
Section titled “Java example”final WifiEncryption encryption = WifiEncryption.AES;final NDefWifi wifi = new NDefWifi( "ExampleGuest", WifiAuthentication.WPA2_PERSONAL, encryption, "demo-only-2026");
System.out.println(wifi.encryption()); // AESJava imports
import com.rvi.domain.NDefWifi;import com.rvi.domain.WifiAuthentication;import com.rvi.domain.WifiEncryption;The passphrase here is illustrative. Use a guest credential when sharing access on a tag.
How it works
Section titled “How it works”NDefWifi checks this value together with authentication before encoding. The Wi-Fi payload includes an encryption identifier describing the network, while the data on the NFC tag is readable by devices that can access it.