Class SecurityHandler

    • Field Detail

      • __NO_USER

        public static final java.security.Principal __NO_USER
        Deprecated.
      • __NOBODY

        public static final java.security.Principal __NOBODY
        Deprecated.
        Nobody user. The Nobody UserPrincipal is used to indicate a partial state of authentication. A request with a Nobody UserPrincipal will be allowed past all authentication constraints - but will not be considered an authenticated request. It can be used by Authenticators such as FormAuthenticator to allow access to logon and error pages within an authenticated URI tree.
    • Method Detail

      • setIdentityService

        public void setIdentityService​(IdentityService identityService)
        Deprecated.
        Set the identityService.
        Parameters:
        identityService - the identityService to set
      • setLoginService

        public void setLoginService​(LoginService loginService)
        Deprecated.
        Set the loginService.
        Parameters:
        loginService - the loginService to set
      • getAuthenticator

        public Authenticator getAuthenticator()
        Deprecated.
      • setAuthenticator

        public void setAuthenticator​(Authenticator authenticator)
        Deprecated.
        Set the authenticator.
        Parameters:
        authenticator - the authenticator
        Throws:
        java.lang.IllegalStateException - if the SecurityHandler is running
      • getAuthenticatorFactory

        public Authenticator.Factory getAuthenticatorFactory()
        Deprecated.
        Returns:
        the authenticatorFactory
      • setAuthenticatorFactory

        public void setAuthenticatorFactory​(Authenticator.Factory authenticatorFactory)
        Deprecated.
        Parameters:
        authenticatorFactory - the authenticatorFactory to set
        Throws:
        java.lang.IllegalStateException - if the SecurityHandler is running
      • getKnownAuthenticatorFactories

        public java.util.List<Authenticator.Factory> getKnownAuthenticatorFactories()
        Deprecated.
        Returns:
        the list of discovered authenticatorFactories
      • setRealmName

        public void setRealmName​(java.lang.String realmName)
        Deprecated.
        Parameters:
        realmName - the realmName to set
        Throws:
        java.lang.IllegalStateException - if the SecurityHandler is running
      • setAuthMethod

        public void setAuthMethod​(java.lang.String authMethod)
        Deprecated.
        Parameters:
        authMethod - the authMethod to set
        Throws:
        java.lang.IllegalStateException - if the SecurityHandler is running
      • isCheckWelcomeFiles

        public boolean isCheckWelcomeFiles()
        Deprecated.
        Returns:
        True if forwards to welcome files are authenticated
      • setCheckWelcomeFiles

        public void setCheckWelcomeFiles​(boolean authenticateWelcomeFiles)
        Deprecated.
        Parameters:
        authenticateWelcomeFiles - True if forwards to welcome files are authenticated
        Throws:
        java.lang.IllegalStateException - if the SecurityHandler is running
      • setInitParameter

        public java.lang.String setInitParameter​(java.lang.String key,
                                                 java.lang.String value)
        Deprecated.
        Set an initialization parameter.
        Parameters:
        key - the init key
        value - the init value
        Returns:
        previous value
        Throws:
        java.lang.IllegalStateException - if the SecurityHandler is started
      • setSessionRenewedOnAuthentication

        public void setSessionRenewedOnAuthentication​(boolean renew)
        Deprecated.
        Set renew the session on Authentication.

        If set to true, then on authentication, the session associated with a reqeuest is invalidated and replaced with a new session.

        Parameters:
        renew - true to renew the authentication on session
        See Also:
        Authenticator.AuthConfiguration.isSessionRenewedOnAuthentication()
      • getCurrentSecurityHandler

        public static SecurityHandler getCurrentSecurityHandler()
        Deprecated.