Class JwtService
- java.lang.Object
-
- com.netgrif.application.engine.configuration.security.jwt.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)
-
-
-
Method Detail
-
tokenFrom
public java.lang.String tokenFrom(java.util.Map<java.lang.String,java.lang.Object> claims)
- Specified by:
tokenFrom
in interfaceIJwtService
-
isExpired
public void isExpired(java.lang.String token) throws io.jsonwebtoken.ExpiredJwtException
- Specified by:
isExpired
in interfaceIJwtService
- Throws:
io.jsonwebtoken.ExpiredJwtException
-
getLoggedUser
public LoggedUser getLoggedUser(java.lang.String token, Authority anonymousAuthority)
- Specified by:
getLoggedUser
in interfaceIJwtService
-
-