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 LoggedUsergetLoggedUser(java.lang.String token, Authority anonymousAuthority)voidisExpired(java.lang.String token)java.lang.StringtokenFrom(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:
tokenFromin interfaceIJwtService
-
isExpired
public void isExpired(java.lang.String token) throws io.jsonwebtoken.ExpiredJwtException- Specified by:
isExpiredin interfaceIJwtService- Throws:
io.jsonwebtoken.ExpiredJwtException
-
getLoggedUser
public LoggedUser getLoggedUser(java.lang.String token, Authority anonymousAuthority)
- Specified by:
getLoggedUserin interfaceIJwtService
-
-