@Override
  public String createNewToken(UUID jobId) {
    try {
      return JWT.create()
          .withIssuer(JWTTokenManager.ISSUER)
          .withClaim(JWTTokenManager.ID_CLAIM_KEY, jobId.toString())
          .withExpiresAt(new Date(System.currentTimeMillis() + EXPIRATION_TIME_MILLIS))
          .sign(algorithm);
    } catch (JWTCreationException e) {
      throw new RuntimeException("Error creating token for: " + jobId);
    }
  }
Create the {@link Algorithm} to be used for signing and parsing tokens.
portability-api/src/main/java/org/datatransferproject/api/token/JWTTokenManager.java