code: @Nonnull
      @SuppressFBWarnings("NP_NONNULL_RETURN_VIOLATION")
      public String getApiToken() {
          LOGGER.log(Level.FINE, "Deprecated usage of getApiToken");
          if(LOGGER.isLoggable(Level.FINER)){
              LOGGER.log(Level.FINER, "Deprecated usage of getApiToken (trace)", new Exception());
          }
          return hasPermissionToSeeToken()
                  ? getApiTokenInsecure()
                  : Messages.ApiTokenProperty_ChangeToken_TokenIsHidden();
      }
docs: Gets the API token.
  The method performs security checks since 1.638. Only the current user and SYSTEM may see it.
  Users with {@link Jenkins#ADMINISTER} may be allowed to do it using {@link #SHOW_LEGACY_TOKEN_TO_ADMINS}.
  
  @return API Token. Never null, but may be {@link Messages#ApiTokenProperty_ChangeToken_TokenIsHidden()}
  if the user has no appropriate permissions.
  @since 1.426, and since 1.638 the method performs security checks