Class AbstractLoginService

    • Field Detail

      • _name

        protected java.lang.String _name
      • _fullValidate

        protected boolean _fullValidate
    • Constructor Detail

      • AbstractLoginService

        protected AbstractLoginService()
    • Method Detail

      • loadUserInfo

        protected abstract UserPrincipal loadUserInfo​(java.lang.String username)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface LoginService
        Returns:
        Get the name of the login service (aka Realm name)
      • setIdentityService

        public void setIdentityService​(IdentityService identityService)
        Set the identityService.
        Specified by:
        setIdentityService in interface LoginService
        Parameters:
        identityService - the identityService to set
      • setName

        public void setName​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name to set
      • login

        public UserIdentity login​(java.lang.String username,
                                  java.lang.Object credentials,
                                  javax.servlet.ServletRequest request)
        Description copied from interface: LoginService
        Login a user.
        Specified by:
        login in interface LoginService
        Parameters:
        username - The user name
        credentials - The users credentials
        request - TODO
        Returns:
        A UserIdentity if the credentials matched, otherwise null
      • getIdentityService

        public IdentityService getIdentityService()
        Description copied from interface: LoginService
        Get the IdentityService associated with this Login Service.
        Specified by:
        getIdentityService in interface LoginService
        Returns:
        the IdentityService associated with this Login Service.
      • isFullValidate

        public boolean isFullValidate()
      • setFullValidate

        public void setFullValidate​(boolean fullValidate)