\r\n

51Degrees Device Detection Java  4.4

Device detection services for 51Degrees Pipeline
  • fiftyone
  • devicedetection
  • shared
  • testhelpers
  • KeyUtils

fiftyone.devicedetection.shared.testhelpers.KeyUtils Class Reference

Detailed Description

Helpers to obtain keys from the environment.

Static Public Member Functions

static String  getNamedKey (String keyName)
Obtain a key either from environment variable or from a property. More...
static boolean  isInvalidKey (String keyValue)
Evaluate whether a key might be valid. More...

Member Function Documentation

◆ getNamedKey()

static String fiftyone.devicedetection.shared.testhelpers.KeyUtils.getNamedKey ( String   keyName )
static

Obtain a key either from environment variable or from a property.

Try resource key as env var, then as upper case env var, the system property

◆ isInvalidKey()

static boolean fiftyone.devicedetection.shared.testhelpers.KeyUtils.isInvalidKey ( String   keyValue )
static

Evaluate whether a key might be valid.

Parameters
keyValue - value to test
Returns
boolean