ExpirationPolicy.java

  1. /*
  2.  * The coLAB project
  3.  * Copyright (C) 2022-2023 AlbaSim, MEI, HEIG-VD, HES-SO
  4.  *
  5.  * Licensed under the MIT License
  6.  */
  7. package ch.colabproject.colab.api.model.token;

  8. /**
  9.  * Expiration policies available for a token.
  10.  *
  11.  * @author sandra
  12.  */
  13. public enum ExpirationPolicy {
  14.     /**
  15.      * Can be used forever
  16.      */
  17.     NEVER,
  18.     /**
  19.      * Is usable only once
  20.      */
  21.     ONE_SHOT;
  22. }