Class PersistentAuthenticationTokenStorage

    • Constructor Detail

    • Method Detail

      • count

        public int count()
      • updateLastAccessInfo

        public void updateLastAccessInfo​(@NotNull
                                         String identifier,
                                         @NotNull
                                         Date lastAccessDate,
                                         @Nullable
                                         String lastAccessRemoteAddress)
      • deleteAll

        public void deleteAll()
      • delete

        public void delete​(long userId,
                           @NotNull
                           String name)
      • deleteAll

        public void deleteAll​(long userId)
      • deletePermissionsAndTokenByProjectId

        @NotNull
        public List<jetbrains.buildServer.serverSide.auth.impl.PersistentAuthenticationTokenStorage.ShortTokenEntity> deletePermissionsAndTokenByProjectId​(@NotNull
                                                                                                                                                           String projectId)
      • deleteExpiredChunk

        @NotNull
        public List<jetbrains.buildServer.serverSide.auth.impl.PersistentAuthenticationTokenStorage.ShortTokenEntity> deleteExpiredChunk​(@Nullable
                                                                                                                                         Integer limit)
      • exists

        public boolean exists​(@NotNull
                              ParsedToken token)
      • countByOwnerId

        public int countByOwnerId​(long userId)
        Returns:
        number of NOT expired tokens instead of ALL user tokens