Constants.java

  1. package no.nav.data.common.utils;

  2. import java.time.Duration;

  3. public final class Constants {

  4.     private Constants() {
  5.         throw new IllegalStateException("Utility class");
  6.     }

  7.     /* Header names */
  8.     // unique id set by caller
  9.     public static final String HEADER_CALL_ID = "Nav-Call-Id";
  10.     // unique id set by this application
  11.     public static final String HEADER_CORRELATION_ID = "X-Correlation-ID";
  12.     // application id set by caller
  13.     public static final String HEADER_CONSUMER_ID = "Nav-Consumer-Id";

  14.     public static final String APP_ID = "team-catalog";
  15.     public static final Duration SESSION_LENGTH = Duration.ofDays(14);

  16. }