Class TokenProvider
- java.lang.Object
-
- de.trustable.ca3s.core.security.jwt.TokenProvider
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Component public class TokenProvider extends Object implements org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description TokenProvider(io.github.jhipster.config.JHipsterProperties jHipsterProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()StringcreateToken(org.springframework.security.core.Authentication authentication, boolean rememberMe)org.springframework.security.core.AuthenticationgetAuthentication(String token)booleanvalidateToken(String authToken)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
createToken
public String createToken(org.springframework.security.core.Authentication authentication, boolean rememberMe)
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication(String token)
-
validateToken
public boolean validateToken(String authToken)
-
-