Skip to content

WifiEncryption

com.rvi.domain.WifiEncryption · Enum · SocialCard 1.0.3

Selects the encryption associated with a Wi-Fi record.

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.

final WifiEncryption encryption = WifiEncryption.AES;
final NDefWifi wifi = new NDefWifi(
"ExampleGuest", WifiAuthentication.WPA2_PERSONAL, encryption, "demo-only-2026");
System.out.println(wifi.encryption()); // AES
Java 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.

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.

WifiAuthentication · NDefWifi · NDefWifiCreator

Method signatures in the Javadoc · All API types