Class RegistryManagementConstants

java.lang.Object
org.eclipse.hono.util.RequestResponseApiConstants
org.eclipse.hono.util.RegistryManagementConstants

public final class RegistryManagementConstants extends RequestResponseApiConstants
Constants & utility methods used throughout the Device Management API.
  • Field Details

    • API_VERSION

      public static final String API_VERSION
      The current version of the API.
      See Also:
    • DEVICES_HTTP_ENDPOINT

      public static final String DEVICES_HTTP_ENDPOINT
      The name of the Credentials Registration HTTP API endpoint.
      See Also:
    • CREDENTIALS_HTTP_ENDPOINT

      public static final String CREDENTIALS_HTTP_ENDPOINT
      The name of the Device Registration HTTP API endpoint.
      See Also:
    • TENANT_HTTP_ENDPOINT

      public static final String TENANT_HTTP_ENDPOINT
      The name of the HTTP endpoint for the Tenant API.
      See Also:
    • FIELD_EXT

      public static final String FIELD_EXT
      The name of the field that contains the extension fields.
      See Also:
    • FIELD_ID

      public static final String FIELD_ID
      The name of the field that contains the identifier of an entity.
      See Also:
    • FIELD_STATUS

      public static final String FIELD_STATUS
      The name of the field that contains meta information about an entity like creation date and time of last modification.
      See Also:
    • FIELD_STATUS_CREATION_DATE

      public static final String FIELD_STATUS_CREATION_DATE
      The name of the field that contains the creation date of the device.
      See Also:
    • FIELD_STATUS_LAST_UPDATE

      public static final String FIELD_STATUS_LAST_UPDATE
      The name of the field that contains the last update date of the device.
      See Also:
    • FIELD_STATUS_LAST_USER

      public static final String FIELD_STATUS_LAST_USER
      The name of the field that contains the last user that edited the device.
      See Also:
    • FIELD_FILTER_FIELD

      public static final String FIELD_FILTER_FIELD
      The name of the field that contains the JSON pointer corresponding to the field used for filtering entities.
      See Also:
    • FIELD_FILTER_OPERATOR

      public static final String FIELD_FILTER_OPERATOR
      The name of the field that contains the operator used for filtering entities.
      See Also:
    • FIELD_FILTER_VALUE

      public static final String FIELD_FILTER_VALUE
      The name of the field that contains the value used for filtering entities.
      See Also:
    • FIELD_RESULT_SET_PAGE

      public static final String FIELD_RESULT_SET_PAGE
      The name of the field that contains the result of a search operation.
      See Also:
    • FIELD_RESULT_SET_SIZE

      public static final String FIELD_RESULT_SET_SIZE
      The name of the field that contains the total number of objects in the result set of a search operation.
      See Also:
    • FIELD_SORT_DIRECTION

      public static final String FIELD_SORT_DIRECTION
      The name of the field that contains sort direction used by a search operation to sort the result set.
      See Also:
    • PARAM_FILTER_JSON

      public static final String PARAM_FILTER_JSON
      The name of the query parameter that contains the filter JSON object for a search operation.
      See Also:
    • PARAM_PAGE_OFFSET

      public static final String PARAM_PAGE_OFFSET
      The name of the query parameter that contains the page offset for a search operation.
      See Also:
    • PARAM_PAGE_SIZE

      public static final String PARAM_PAGE_SIZE
      The name of the query parameter that contains the page size for a search operation.
      See Also:
    • PARAM_SORT_JSON

      public static final String PARAM_SORT_JSON
      The name of the query parameter that contains the sort JSON object used by a search operation to sort the result set.
      See Also:
    • AUTHORITY_AUTO_PROVISIONING_ENABLED

      public static final String AUTHORITY_AUTO_PROVISIONING_ENABLED
      The name of the authority which authorizes a gateway to perform auto-provisioning.
      See Also:
    • COMMAND_ENDPOINT

      public static final String COMMAND_ENDPOINT
      The name of the property that contains information about the service endpoint to use for sending commands to a device.
      See Also:
    • FIELD_AUTHORITIES

      public static final String FIELD_AUTHORITIES
      The name of the property that contains the authorities of a device.
      See Also:
    • FIELD_AUTO_PROVISIONED

      public static final String FIELD_AUTO_PROVISIONED
      The name of the field that contains a boolean indicating if a device has been auto-provisioned.
      See Also:
    • FIELD_AUTO_PROVISIONING_NOTIFICATION_SENT

      public static final String FIELD_AUTO_PROVISIONING_NOTIFICATION_SENT
      The name of the field that contains a boolean indicating if a notification for an auto-provisioned device was sent.
      See Also:
    • FIELD_DOWNSTREAM_MESSAGE_MAPPER

      public static final String FIELD_DOWNSTREAM_MESSAGE_MAPPER
      The name of the field that contains the name of a service that can be used to transform downstream messages uploaded by the device before they are forwarded to downstream consumers.
      See Also:
    • FIELD_MEMBER_OF

      public static final String FIELD_MEMBER_OF
      The name of the field that contains the names of the gateway groups that the (gateway) device is a member of.
      See Also:
    • FIELD_UPSTREAM_MESSAGE_MAPPER

      public static final String FIELD_UPSTREAM_MESSAGE_MAPPER
      The name of the field that contains the name of a service that can be used to transform upstream commands to be sent to the device.
      See Also:
    • FIELD_VIA

      public static final String FIELD_VIA
      The name of the field that contains the identifiers of those gateways that may act on behalf of the device.
      See Also:
    • FIELD_VIA_GROUPS

      public static final String FIELD_VIA_GROUPS
      The name of the field that contains the identifiers of groups of gateways that may act on behalf of the device.
      See Also:
    • FIELD_COMMENT

      public static final String FIELD_COMMENT
      The name of the field that contains a comment for the credentials.
      See Also:
    • FIELD_TYPE

      public static final String FIELD_TYPE
      The name of the field that contains the type of credentials.
      See Also:
    • FIELD_AUTH_ID

      public static final String FIELD_AUTH_ID
      The name of the field that contains the authentication identifier.
      See Also:
    • FIELD_SECRETS

      public static final String FIELD_SECRETS
      The name of the field that contains the secret(s) of the credentials.
      See Also:
    • SYSTEM_PROPERTY_USERNAME_REGEX

      public static final String SYSTEM_PROPERTY_USERNAME_REGEX
      The name of the system property that contains the regular expression to use for validating authentication IDs of hashed-password secrets.
      See Also:
    • FIELD_SECRETS_PWD_HASH

      public static final String FIELD_SECRETS_PWD_HASH
      The name of the field that contains the password hash.
      See Also:
    • FIELD_SECRETS_PWD_PLAIN

      public static final String FIELD_SECRETS_PWD_PLAIN
      The name of the field that contains the clear text password.
      See Also:
    • FIELD_SECRETS_SALT

      public static final String FIELD_SECRETS_SALT
      The name of the field that contains the salt for the password hash.
      See Also:
    • FIELD_SECRETS_HASH_FUNCTION

      public static final String FIELD_SECRETS_HASH_FUNCTION
      The name of the field that contains the name of the hash function used for a hashed password.
      See Also:
    • FIELD_SECRETS_KEY

      public static final String FIELD_SECRETS_KEY
      The name of the field that contains a (pre-shared) key.
      See Also:
    • FIELD_SECRETS_NOT_BEFORE

      public static final String FIELD_SECRETS_NOT_BEFORE
      The name of the field that contains the earliest point in time a secret may be used for authentication.
      See Also:
    • FIELD_SECRETS_NOT_AFTER

      public static final String FIELD_SECRETS_NOT_AFTER
      The name of the field that contains the latest point in time a secret may be used for authentication.
      See Also:
    • FIELD_SECRETS_COMMENT

      public static final String FIELD_SECRETS_COMMENT
      The name of the field that contains the comment about the secret.
      See Also:
    • SECRETS_TYPE_X509_CERT

      public static final String SECRETS_TYPE_X509_CERT
      The type name that indicates an X.509 client certificate secret.
      See Also:
    • SECRETS_TYPE_HASHED_PASSWORD

      public static final String SECRETS_TYPE_HASHED_PASSWORD
      The type name that indicates a hashed password secret.
      See Also:
    • SECRETS_TYPE_PRESHARED_KEY

      public static final String SECRETS_TYPE_PRESHARED_KEY
      The type name that indicates a pre-shared key secret.
      See Also:
    • HASH_FUNCTION_BCRYPT

      public static final String HASH_FUNCTION_BCRYPT
      The name of the BCrypt hash function.
      See Also:
    • HASH_FUNCTION_SHA256

      public static final String HASH_FUNCTION_SHA256
      The name of the SHA-256 hash function.
      See Also:
    • DEFAULT_MINIMUM_MESSAGE_SIZE

      public static final int DEFAULT_MINIMUM_MESSAGE_SIZE
      The default message size is set to 0, which implies no minimum size is defined.
      See Also:
    • FIELD_ADAPTERS

      public static final String FIELD_ADAPTERS
      The name of the property that contains configuration options for specific protocol adapters.
      See Also:
    • FIELD_ADAPTERS_TYPE

      public static final String FIELD_ADAPTERS_TYPE
      The name of the property that contains the type name of a protocol adapter.
      See Also:
    • FIELD_ADAPTERS_DEVICE_AUTHENTICATION_REQUIRED

      public static final String FIELD_ADAPTERS_DEVICE_AUTHENTICATION_REQUIRED
      The name of the property that indicates whether a protocol adapter requires all devices to authenticate.
      See Also:
    • FIELD_ALIAS

      public static final String FIELD_ALIAS
      The name of the property that contains a tenant's optional alternative identifier.
      See Also:
    • FIELD_AUTO_PROVISION_AS_GATEWAY

      public static final String FIELD_AUTO_PROVISION_AS_GATEWAY
      The name of the property that indicates whether a unregistered device that authenticates with a client certificate should be auto-provisioned as a gateway.
      See Also:
    • FIELD_AUTO_PROVISIONING_DEVICE_ID_TEMPLATE

      public static final String FIELD_AUTO_PROVISIONING_DEVICE_ID_TEMPLATE
      The name of the property that defines the device identifier template for the devices/gateways being auto-provisioned.
      See Also:
    • FIELD_AUTH_ID_TEMPLATE

      public static final String FIELD_AUTH_ID_TEMPLATE
      The name of the property that defines the template for generating authentication identifier to be used during authentication and auto-provisioning.
      See Also:
    • FIELD_AUTO_PROVISIONING_ENABLED

      public static final String FIELD_AUTO_PROVISIONING_ENABLED
      The name of the property that indicates whether a CA cert can be used to automatically provision new devices.
      See Also:
    • FIELD_CONNECTION_DURATION

      public static final String FIELD_CONNECTION_DURATION
      The name of the property that contains the configuration options to limit the device connection duration of tenants.
      See Also:
    • FIELD_DATA_VOLUME

      public static final String FIELD_DATA_VOLUME
      The name of the property that contains the configuration options for a tenant's data volume limits.
      See Also:
    • FIELD_DEVICES

      public static final String FIELD_DEVICES
      The name of the JSON array containing device registration information for a tenant.
      See Also:
    • FIELD_EFFECTIVE_SINCE

      public static final String FIELD_EFFECTIVE_SINCE
      The name of the property that contains the date on which the data volume limit came into effect.
      See Also:
    • FIELD_EXT_MESSAGING_TYPE

      public static final String FIELD_EXT_MESSAGING_TYPE
      The name of the property that defines the messaging type to be used for a tenant.
      See Also:
    • FIELD_MAX_BYTES

      public static final String FIELD_MAX_BYTES
      The name of the property that contains the maximum number of bytes to be allowed for a tenant.
      See Also:
    • FIELD_MAX_CONNECTIONS

      public static final String FIELD_MAX_CONNECTIONS
      The name of the property that contains the maximum number of connections to be allowed for a tenant.
      See Also:
    • FIELD_MAX_CREDENTIALS_PER_DEVICE

      public static final String FIELD_MAX_CREDENTIALS_PER_DEVICE
      The name of the property that contains the maximum number of credentials allowed per device of a tenant.
      See Also:
    • FIELD_MAX_DEVICES

      public static final String FIELD_MAX_DEVICES
      The name of the property that contains the maximum number of devices to be allowed for a tenant.
      See Also:
    • FIELD_MAX_MINUTES

      public static final String FIELD_MAX_MINUTES
      The name of the property that contains the maximum connection duration in minutes to be allowed for a tenant.
      See Also:
    • FIELD_MAX_TTL

      public static final String FIELD_MAX_TTL
      The name of the property that contains the maximum time to live (seconds) for downstream events that protocol adapters should use for a tenant.
      See Also:
    • FIELD_MAX_TTL_TELEMETRY_QOS0

      public static final String FIELD_MAX_TTL_TELEMETRY_QOS0
      The name of the property that contains the maximum time to live (seconds) for downstream QoS 0 telemetry messages that protocol adapters should use for a tenant.
      See Also:
    • FIELD_MAX_TTL_TELEMETRY_QOS1

      public static final String FIELD_MAX_TTL_TELEMETRY_QOS1
      The name of the property that contains the maximum time to live (seconds) for downstream QoS 1 telemetry messages that protocol adapters should use for a tenant.
      See Also:
    • FIELD_MAX_TTL_COMMAND_RESPONSE

      public static final String FIELD_MAX_TTL_COMMAND_RESPONSE
      The name of the property that contains the maximum time to live (seconds) for downstream command response messages that protocol adapters should use for a tenant.
      See Also:
    • FIELD_MINIMUM_MESSAGE_SIZE

      public static final String FIELD_MINIMUM_MESSAGE_SIZE
      The name of the property that contains the minimum message size in bytes.
      See Also:
    • FIELD_PAYLOAD_KEY_ALGORITHM

      public static final String FIELD_PAYLOAD_KEY_ALGORITHM
      The name of the property that contains the algorithm used for a public key.
      See Also:
    • FIELD_PAYLOAD_CERT

      public static final String FIELD_PAYLOAD_CERT
      The name of the property that contains the Base64 encoded (binary) DER encoding of the trusted certificate configured for a tenant.
      See Also:
    • FIELD_PAYLOAD_PUBLIC_KEY

      public static final String FIELD_PAYLOAD_PUBLIC_KEY
      The name of the property that contains the Base64 encoded DER encoding of the public key of the trusted certificate authority configured for a tenant.
      See Also:
    • FIELD_TRUST_ANCHOR_GROUP

      public static final String FIELD_TRUST_ANCHOR_GROUP
      The name of the property that contains the trust anchor group name for a tenant.
      See Also:
    • FIELD_PAYLOAD_TRUSTED_CA

      public static final String FIELD_PAYLOAD_TRUSTED_CA
      The name of the property that contains the trusted certificate authority configured for a tenant.
      See Also:
    • FIELD_PERIOD

      public static final String FIELD_PERIOD
      The name of the property that contains the period details for which the data usage is calculated.
      See Also:
    • FIELD_PERIOD_MODE

      public static final String FIELD_PERIOD_MODE
      The name of the property that contains the mode of the period for which the data usage is calculated.
      See Also:
    • FIELD_PERIOD_NO_OF_DAYS

      public static final String FIELD_PERIOD_NO_OF_DAYS
      The name of the property that contains the number of days for which the data usage is calculated.
      See Also:
    • FIELD_REGISTRATION_LIMITS

      public static final String FIELD_REGISTRATION_LIMITS
      The name of the property that contains the configuration options for the registration limits.
      See Also:
    • FIELD_RESOURCE_LIMITS

      public static final String FIELD_RESOURCE_LIMITS
      The name of the property that contains the configuration options for the resource limits.
      See Also:
    • FIELD_TENANT

      public static final String FIELD_TENANT
      The name of the JSON property containing the tenant ID.
      See Also:
    • FIELD_TRACING

      public static final String FIELD_TRACING
      The name of the property that defines tenant-specific tracing options.
      See Also:
    • FIELD_TRACING_SAMPLING_MODE

      public static final String FIELD_TRACING_SAMPLING_MODE
      The name of the property that defines in how far spans created when processing messages for a tenant shall be recorded (sampled) by the tracing system. The property contains a TracingSamplingMode value.
      See Also:
    • FIELD_TRACING_SAMPLING_MODE_PER_AUTH_ID

      public static final String FIELD_TRACING_SAMPLING_MODE_PER_AUTH_ID
      The name of the property that defines in how far spans created when processing messages for a tenant and a particular auth-id shall be recorded (sampled) by the tracing system. The property contains a JsonObject with fields having a auth-id as name and a TracingSamplingMode value.
      See Also:
    • PLACEHOLDER_SUBJECT_DN

      public static final String PLACEHOLDER_SUBJECT_DN
      The name of the place holder for subject DN in the device-id template used during auto-provisioning.
      See Also:
    • PLACEHOLDER_SUBJECT_CN

      public static final String PLACEHOLDER_SUBJECT_CN
      The name of the place holder for subject DN's Common Name in the device-id template used during auto-provisioning.
      See Also:
    • PLACEHOLDER_SUBJECT_OU

      public static final String PLACEHOLDER_SUBJECT_OU
      The name of the placeholder for subject DN's attribute Organizational Unit Name (OU).
      See Also:
    • PLACEHOLDER_SUBJECT_O

      public static final String PLACEHOLDER_SUBJECT_O
      The name of the placeholder for subject DN's attribute Organization Name (O).
      See Also:
    • DEFAULT_REGEX_DEVICE_ID

      public static final String DEFAULT_REGEX_DEVICE_ID
      The default regular expression to validate device IDs supplied when creating devices are legal.
      See Also:
    • DEFAULT_REGEX_TENANT_ID

      public static final String DEFAULT_REGEX_TENANT_ID
      The default regular expression to validate tenant IDs supplied when creating tenants are legal.
      See Also:
    • DEFAULT_REGEX_USERNAME

      public static final String DEFAULT_REGEX_USERNAME
      The default regular expression for validating authentication IDs supplied when creating hashed-password credentials.
      See Also:
    • DEFAULT_PATTERN_USERNAME

      public static final Pattern DEFAULT_PATTERN_USERNAME
      The default pattern for validating authentication IDs supplied when creating hashed-password credentials.

      Based on DEFAULT_REGEX_USERNAME.