Class ZeroPageLoginConfig


  • public final class ZeroPageLoginConfig
    extends Object
    Interface to different methods for configuring Zero Page Login (ZPL). For local authentication, this uses the LoginState, otherwise (DAS) it uses system properties.
    • Constructor Detail

      • ZeroPageLoginConfig

        public ZeroPageLoginConfig​(boolean enabled,
                                   Set<String> whitelist,
                                   boolean allowWithoutReferer)
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Indicates whether ZPL is enabled at all.
      • getRefererWhitelist

        public Set<String> getRefererWhitelist()
        Returns the whitelist of allowed Referer URLs.
      • isAllowedWithoutReferer

        public boolean isAllowedWithoutReferer()
        Indicates whether ZPL requests should be allowed if the request does not include a Referer header.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toJson

        public org.forgerock.json.JsonValue toJson()