Interface WebXmlLoginConfig

  • All Known Implementing Classes:
    DefaultWebXmlLoginConfig

    public interface WebXmlLoginConfig
    Implementations of this interface can be used by a servlet container to pass the login config from web.xml to Soteria.

    This SPI is needed since there is no portable way for CDI extensions to read web.xml. Soteria would need this information when its CDI extension runs.

    Soteria needs access to the login config from web.xml to satisfy the option allowed and detailed by Jakarta Security to use the Jakarta EE BASIC and FORM authentication mechanisms to fullfill the Servlet spec requirements for those mechanisms.

    If the configuration is readily available before the CDI implementation is initialized, containers can opt to use the default implementation DefaultWebXmlLoginConfig.

    Author:
    Arjan Tijms
    • Method Detail

      • getAuthMethod

        String getAuthMethod()
      • setAuthMethod

        void setAuthMethod​(String authMethod)
      • getRealmName

        String getRealmName()
      • setRealmName

        void setRealmName​(String realmName)
      • getFormLoginPage

        String getFormLoginPage()
      • setFormLoginPage

        void setFormLoginPage​(String formLoginPage)
      • getFormErrorPage

        String getFormErrorPage()
      • setFormErrorPage

        void setFormErrorPage​(String formErrorPage)