Class TokenProvider

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Component
    public class TokenProvider
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • TokenProvider

        public TokenProvider​(io.github.jhipster.config.JHipsterProperties jHipsterProperties)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.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)