类 JwtAuthenticationImpl

    • 构造器详细资料

      • JwtAuthenticationImpl

        public JwtAuthenticationImpl​(DustMsProperties dustMsProperties)
    • 方法详细资料

      • validateRequest

        public boolean validateRequest​(javax.servlet.http.HttpServletRequest request)
        指定者:
        validateRequest 在接口中 IAuthentication
      • validateRequestByDust

        public boolean validateRequestByDust​(javax.servlet.http.HttpServletRequest request)
      • createToken

        public java.lang.String createToken​(org.springframework.security.core.Authentication authentication,
                                            java.lang.Boolean rememberMe)
        指定者:
        createToken 在接口中 IAuthentication
      • createRefreshToken

        public java.lang.String createRefreshToken​(org.springframework.security.core.Authentication authentication)
        指定者:
        createRefreshToken 在接口中 IAuthentication
      • json2Authentication

        protected DustAuthentication json2Authentication​(java.lang.String token)
        JSON转化为DustAuthentication
        参数:
        token -
        返回:
      • bearer2Authentication

        protected DustAuthentication bearer2Authentication​(java.lang.String token)
        token转化为Authorization对象
        参数:
        token -
      • resolveToken

        protected java.lang.String resolveToken​(javax.servlet.http.HttpServletRequest request)
      • resolveSysParam

        protected void resolveSysParam​(javax.servlet.http.HttpServletRequest req,
                                       DustUser dustUser)
      • isEnable

        public boolean isEnable()
      • getSecretKey

        public java.lang.String getSecretKey()
      • getTokenValidityInSeconds

        public long getTokenValidityInSeconds()
      • getTokenValidityInSecondsForRememberMe

        public long getTokenValidityInSecondsForRememberMe()
      • isJsonToken

        public boolean isJsonToken()