Class DefaultExpirableUserTokenService

java.lang.Object
com.atlassian.crowd.service.token.DefaultExpirableUserTokenService
All Implemented Interfaces:
ExpirableUserTokenService

@Transactional public class DefaultExpirableUserTokenService extends Object implements ExpirableUserTokenService
Default implementation of ExpirableUserTokenService backed by a storage DAO.
Since:
v2.8
  • Constructor Details

    • DefaultExpirableUserTokenService

      public DefaultExpirableUserTokenService(ExpirableUserTokenDao expirableUserTokenDao)
  • Method Details

    • removeExpiredTokens

      public boolean removeExpiredTokens(Date expiryDate)
      Description copied from interface: ExpirableUserTokenService
      Remove all tokens which have expired as of the given date
      Specified by:
      removeExpiredTokens in interface ExpirableUserTokenService
      Parameters:
      expiryDate - Effective expiry date to enforce
      Returns:
      true if any tokens were deleted, false otherwise