Class JwtService

  • All Implemented Interfaces:
    IJwtService

    @Service
    public class JwtService
    extends java.lang.Object
    implements IJwtService
    • Constructor Summary

      Constructors 
      Constructor Description
      JwtService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LoggedUser getLoggedUser​(java.lang.String token, Authority anonymousAuthority)  
      void isExpired​(java.lang.String token)  
      java.lang.String tokenFrom​(java.util.Map<java.lang.String,​java.lang.Object> claims)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JwtService

        public JwtService()
    • Method Detail

      • tokenFrom

        public java.lang.String tokenFrom​(java.util.Map<java.lang.String,​java.lang.Object> claims)
        Specified by:
        tokenFrom in interface IJwtService
      • isExpired

        public void isExpired​(java.lang.String token)
                       throws io.jsonwebtoken.ExpiredJwtException
        Specified by:
        isExpired in interface IJwtService
        Throws:
        io.jsonwebtoken.ExpiredJwtException