Class AbstractTokenService<E extends Token,​D extends AbstractTokenDao<E>>

    • Constructor Detail

      • AbstractTokenService

        public AbstractTokenService()
        Default constructor, which calls the type-constructor
      • AbstractTokenService

        protected AbstractTokenService​(Class<E> entityClass)
        Constructor that sets the concrete entity class for the service. Subclasses MUST call this constructor.
    • Method Detail

      • findByTokenValue

        @Transactional(readOnly=true)
        public E findByTokenValue​(String token)
        Returns:
      • validateToken

        @Transactional(readOnly=true)
        public void validateToken​(E token)
                           throws Exception
        If the passed token is null or expired, this method will throw an Exception.
        Parameters:
        token -
        Throws:
        Exception - if the token is not valid (e.g. because it is expired)