Class SecurityPropertiesResource

java.lang.Object
com.inductiveautomation.ignition.gateway.model.resources.AbstractPropertyMapResource
com.inductiveautomation.ignition.gateway.model.resources.SecurityPropertiesResource

public class SecurityPropertiesResource extends AbstractPropertyMapResource
  • Field Details

  • Constructor Details

    • SecurityPropertiesResource

      public SecurityPropertiesResource(Map<Property<?>, Object> properties)
  • Method Details

    • copy

      public <T> SecurityPropertiesResource copy(Property<T> prop, T value)
    • copy

    • getSystemIdentityProviders

      public List<SystemIdentityProvider> getSystemIdentityProviders()
      Returns the ordered, immutable list of configured system identity providers (never null).

      Legacy pre-2027 (single-IdP) configs are migrated to the list form when the resource is constructed (see foldLegacyIdentityProvider(Map)), so this is a straight read of GatewaySystemProperties.SystemIdentityProviders.

    • getUnauthenticatedSystemIdentityProvider

      public String getUnauthenticatedSystemIdentityProvider()
      Returns the configured unauthenticated system identity provider name - the IdP whose rules grant security levels to unauthenticated Designer sessions - or null when none is configured. Applies only to the Designer.

      Pre-2027 configs are seeded from the legacy single-IdP scalar in foldLegacyIdentityProvider(Map).

    • normalizeIdp

      public static String normalizeIdp(Object value)
      Normalizes a raw single-IdP property value (e.g. GatewaySystemProperties.UnauthenticatedSystemIdentityProvider) to its IdP name, or null when unset/blank. The scalar counterpart to normalizeIdpList(Object), tolerant of the same SystemIdentityProvider/Map/string forms the value can take. Exposed for callers that read the property directly via SystemPropertiesManager.
    • normalizeIdpList

      public static List<String> normalizeIdpList(Object listValue)
      Normalizes a raw GatewaySystemProperties.SystemIdentityProviders value to an immutable list of non-null, non-blank IdP names (never null). Exposed for callers that read the property directly via SystemPropertiesManager (e.g. the login-redirect spoofing guards).

      Tolerates every form the property value can take: SystemIdentityProvider objects (the in-memory form), Maps (the form Gson produces when deserializing the raw List property from disk), and bare strings (pre-object configs already persisted, and the legacy single-IdP scalar). All are reduced to their name.