NevisPairingCodeDecoding

public class NevisPairingCodeDecoding extends Object

This class was deprecated.
Please use methods on PairingCodeUtils instead.

NevisPairingCodeDecoding enables decoding of pairing codes to yield a device ID.

Public Constructor Summary

Public Method Summary

static long
extractDeviceId(String pairingCode)
Returns the device ID encoded in the pairing code, if valid.
static String
extractPairingCode(long deviceId)
Returns the pairing code decoded from the given Nevis device ID, if valid; otherwise, returns null

Inherited Method Summary

Public Constructors

public NevisPairingCodeDecoding ()

Public Methods

public static long extractDeviceId (String pairingCode)

Returns the device ID encoded in the pairing code, if valid. Otherwise, returns 0.

Parameters
pairingCode

public static String extractPairingCode (long deviceId)

Returns the pairing code decoded from the given Nevis device ID, if valid; otherwise, returns null

Parameters
deviceId the Nevis device ID (must begin with 0x18b430040)